import java.util.*; public class Main{ public static void main(String[] args){ int i; Scanner sc = new Scanner(System.in); int num = sc.nextInt(); String[] str1 = new String[num]; for(i=0;i