import java.util.*; public class Main { public static void main(String[] args) { Scanner sc=new Scanner(System.in); int len=Integer.parseInt(sc.nextLine()); List list=new ArrayList<>(); Set made=new HashSet<>(len*len); for(int i=0;i