import java.util.*; public class A { public static int prime1(int n) { int count=0; if(n>1) { for(int j=2;j<=n/j;j++) { if(n%j==0) { count++; break; } } if(count==0) { return 1; } else { return 0; } } else return 0; } public static void main(String ar[]) throws Exception { Scanner sc=new Scanner(System.in); int n=sc.nextInt(); String str[]=new String[n]; int m=0; for(int l=0;l