#include #include #include #include #include #include #include using namespace std; using uint = unsigned int; using ll = long long; #define CIN( LL , A ) LL A; cin >> A #define GETLINE( A ) string A; getline( cin , A ) #define FOR_ITR( ARRAY , ITR , END ) for( auto ITR = ARRAY .begin() , END = ARRAY .end() ; ITR != END ; ITR ++ ) int main() { CIN( ll , N ); string S[10]; string T[10]; for( ll i = 0 ; i < N ; i++ ){ cin >> S[i]; } for( ll i = 0 ; i < N ; i++ ){ cin >> T[i]; } for( ll i = 0 ; i < N ; i++ ){ if( S[i] != T[i] ){ cout << i+1 << endl; cout << S[i] << endl; cout << T[i] << endl; return 0; } } return 0; }