#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 < N; i++) { scanf("%s", S[i]); } for (i = 0; i < N; i++) { scanf("%s", T[i]); } for (i = 0; i < N; i++) { if (strcmp(S[i], T[i]) != 0) { printf("%d\n%s\n%s\n", i+1, S[i], T[i]); break; } } return 0; }