#include using namespace std; int main() { int n; cin >> n; vector s(n), t(n); for (auto &e : s) cin >> e; for (auto &e : t) cin >> e; for (int i = 0; i < n; i++) if (s[i] != t[i]) { cout << i + 1 << '\n'; cout << s[i] << '\n'; cout << t[i] << '\n'; } return 0; }