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