#define _USE_MATH_DEFINES #include //cin, cout #include //vector #include //sort,min,max,count #include //string,getline #include //fixed #include //setprecision #include //swap #include //abs(int) #include //sqrt #include //stringstream,getline #include //ceil,M_PI #include //gcd #include //deque using namespace std; int main() { int N; cin >> N; vector S(N); for (int i = 0; i < N; i++) { cin >> S[i]; } string temp; for (int i = 0; i < N; i++) { cin >> temp; if (temp != S[i]) { cout << i + 1 << endl; cout << S[i] << endl; cout << temp << endl; break; } } return 0; }