#include #include #include using namespace std; int main() { std::ios::sync_with_stdio(false); std::cin.tie(0); int count = 0; string tmp; vector S; vector T; int word; cin >> word; for (int i = 0; i < word; i++) { cin >> tmp; S.push_back(tmp); } for (int i = 0; i < word; i++) { cin >> tmp; T.push_back(tmp); } for (int i = 0; i < word; i++) { if (S[i] != T[i]) { cout << i + 1<<'\n'; cout << S[i] << '\n'; cout << T[i]; return 0; } } return 0; }