#include #include #include void solve() { int n; std::cin >> n; std::vector ss(n), ts(n); for (auto& s : ss) std::cin >> s; for (auto& t : ts) std::cin >> t; for (int i = 0; i < n; ++i) { if (ss[i] == ts[i]) continue; std::cout << i + 1 << std::endl << ss[i] << std::endl << ts[i] << std::endl; } } int main() { std::cin.tie(nullptr); std::ios::sync_with_stdio(false); solve(); return 0; }