#include #include #include #include #include #include #include #include #include #include #include #include using namespace std; int main() { int N; cin >> N; vector ss; vector ts; for (int i = 0; i < N; ++i) { string S; cin >> S; ss.push_back(S); } for (int i = 0; i < N; ++i) { string T; cin >> T; ts.push_back(T); } for (int i = 0; i < N; ++i) { if (ss[i] != ts[i]) { cout << i + 1 << endl; cout << ss[i] << endl; cout << ts[i] << endl; } } return 0; }