#include #include int main(void){ int n, i, x, j = 0; char s[10][21], t[10][21]; 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){ x = i + 1; } } printf("%d\n%s\n%s\n",x,s[x-1],t[x-1]); return 0; }