#include #define rep(i, ss, ee) for (int i = ss; i < ee; ++i) using namespace std; void solve() { int N; cin >> N; vector s(N), t(N); rep(i, 0, N) { cin >> s[i]; } rep(i, 0, N) { cin >> t[i]; } rep(i, 0, N) { if (s[i] != t[i]) { cout << i + 1 << endl; cout << s[i] << endl; cout << t[i] << endl; return; } } } int main() { cin.tie(0); ios::sync_with_stdio(false); solve(); getchar(); }