>>162
#include <stdio.h>
#include <stdlib.h>
#include <time.h>

int main()
{
int x;
int s = 0 + (int)(rand() * (9 - 0 + 1.0) / (1.0 + RAND_MAX));
srand((unsigned int)time(NULL));
while (1) {
scanf("%d", &x);
if (x == s) break;
}
printf("%d %d\n", x, s);
return 0;
}