package algo; import java.util.*; public class sample7 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); String[] s1 = new String[N]; String[] s2 = new String[N]; for(int i=0; i < N; i++) { s1[i] = sc.next(); } for(int i=0; i