#include #include using namespace std; #define p(x) cout << x << endl; #define el cout << endl; int main(){ cin.tie(0); ios::sync_with_stdio(false); int n; cin >> n; string s[n], t[n]; 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]){ cout << i + 1 << endl; cout << s[i] << endl; cout << t[i] << endl; break; } } }