import java.util.Scanner; public class top { public static void main(String[] args) { Scanner in = new Scanner(System.in); int max = in.nextInt(); for (int c = 1; c <= max; c++) { in.nextLine(); System.out.println(c); if (Math.random() > .3) { for (int i = 0; i < 6; i++) { for (int j = 0; j < 6; j++) { char ch = (Math.random() > .5) ? '#' : '.'; System.out.print(ch); } System.out.println(""); } } else { System.out.println("No solution"); } } } }