//To read input from KB until -1000 and display it
#include
main()
{
	int a;
	scanf("%d",&a);
	while (a!=-1000)
	{
		printf("%d\n",a);
		scanf("%d",&a);
	}
}