#include #define REP(i, a, n) for(ll i = ((ll) a); i < ((ll) n); i++) using namespace std; #define ll long long int main(void) { int n; cin >> n; vector S(n); vector T(n); string ans; REP (i, 0, n) cin >> S[i]; REP (i, 0, n) cin >> T[i]; REP (i, 0, n) if (S[i] != T[i]) cout << S[i] << endl << T[i] << endl; return 0; }