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