/*
#include<stdio.h>
int main()
{
int a, b;
scanf("%d", &a);
for(; a!=0; a--)
{
scanf("%d", &b);
printf("%d\n", b);
}
return 0;
}
*/
/*
#include<stdio.h>
int main()
{#include<stdio.h>
int main()
{
int a,i;
for(;;)
{
scanf("%d",&a);
if(a==0)
{
//printf("0\n");
break;
}
else
{
printf("%d\n",a);
continue;
}
}
}
int a,i;
for(;;)
{
scanf("%d",&a);
if(a==0)
{
//printf("0\n");
break;
}
else
{
printf("%d\n",a);
continue;
}
}
}
*/
/*
#include<stdio.h>
#include<windows.h>
#include<math.h>
#include<string.h>
#include<conio.h>
#include<stdlib.h>
#define LEFT 75
#define RIGHT 77
#define UP 72
#define DOWN 80
void gotoxy(int x,int y)
{
COORD pos= {x,y};
SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), pos);
}
int main()
{
int key;
int x, y;
x = 10; // 가로
y = 10; // 세로
gotoxy(x, y);
printf("*");
while(1)
{
if(kbhit())
{
key = getch();
switch(key)
{
case LEFT:
gotoxy(x, y);
printf(" ");
x--;
gotoxy(x, y);
printf("*");
//printf("LEFT\n");
break;
case RIGHT:
gotoxy(x, y);
printf(" ");
x++;
gotoxy(x, y);
printf("*");
//printf("RIGHT\n");
break;
case UP:
gotoxy(x, y);
printf(" ");
y--;
gotoxy(x, y);
printf("*"); //printf("UP\n");
break;
case DOWN:
gotoxy(x, y);
printf(" ");
y++;
gotoxy(x, y);
printf("*"); //printf("DOWN\n");
break;
}
}
}
}
*/