#include #include int main(){ int n; scanf("%d", &n); char s[n][25]; char t[n][25]; for(int i = 0; i < n; i++){ scanf("%s", s[i]); } for(int i = 0; i < n; i++){ scanf("%s", t[i]); } for(int i = 0; i < n; i++){ if(strcmp(s[i], t[i])){ printf("%d\n%s\n%s\n", i+1, s[i], t[i]); return 0; } } }