#include #include int main() { int N, i; char S[10][20] = {{'\0'}, {'\0'}, {'\0'}, {'\0'}, {'\0'}, {'\0'}, {'\0'}, {'\0'}, {'\0'}, {'\0'}}; char T[10][20] = {{'\0'}, {'\0'}, {'\0'}, {'\0'}, {'\0'}, {'\0'}, {'\0'}, {'\0'}, {'\0'}, {'\0'}}; scanf("%d", &N); for (i = 0; i < 10; i++) { scanf("%s", S[i]); if (i+1 == N) { break; } } for (i = 0; i < 10; i++) { scanf("%s", T[i]); if (i+1 == N) { break; } } for (i = 0; i < 10; i++) { if (strcmp(S[i], T[i]) != 0) { printf("%d\n%s\n%s\n", i+1, S[i], T[i]); break; } } return 0; }