N=int (input ()) S=[i for i in input (). split ()] T=[i for i in input (). split ()] i=0 while i