#include #include #include using namespace std; int main(){ int N,ans; cin >> N; string S[10], T[10]; for (int i = 0; i < N; i++){ cin >> S[i]; } for (int i = 0; i < N; i++){ cin >> T[i]; } for (int i = 0; i < N; i++){ if (S[i] != T[i]){ ans = i; } } cout << ans+1 << endl; cout << S[ans] << endl; cout << T[ans] << endl; }