#include
#include
#include
#define MaxSize 100
int main()
{
int i, num;
scanf("%d", &num);
FILE *fp = fopen("./data.txt", "r+"); //文件名自定
char str[MaxSize], tmp[MaxSize];
while(!feof(fp))
{
memset(str, 0, sizeof(str));
fgets(str, sizeof(str)-1, fp);
for(i = 0; i < strlen(str); ++i)
if(str[i] == ' ')
break;
strncpy(tmp, str, i);
if( atoi(tmp) == num )
printf("%s\n", str);
}
return 0;
}