#include using namespace std; #define REP(i,n) for(int i=0; i<(n); i++) #define REP2(i,x,n) for(int i=x; i<(n); i++) #define ALL(n) begin(n),end(n) #define SORT(x) sort((x).begin(),(x).end(),greater()) using LL=long long; using ULL=unsigned long long; using PII=pair; const int INF = numeric_limits::max(); struct cww{cww(){ios::sync_with_stdio(false);cin.tie(0);}}star; vector> memo( 10000 + 1, vector( 10000 + 1, -1 ) ); int main() { int N; cin >> N; vector S(N), T(N); REP( i, N ) { cin >> S[ i ]; } REP( i, N ) { cin >> T[ i ]; } REP( i, N ) { if( S[ i ] != T[ i ] ) { cout << i + 1 << endl; cout << S[ i ] << endl; cout << T[ i ] << endl; } } return 0; }