public class Solution { public static void main(String[] args) { String b = "Б"; int m = 0 ; while (m<10) { int n =0; while (n<20) { if (m==0 || m==9) System.out.print(b); else if (n==0 || m==19) System.out.print(b); if (n==19) System.out.print(" "+" "+" "+" "+" "+" "+" "+" "+" "+" "+" "+" "+" "+" "+" "+" "+" "+" "+" "+" "+" "+" "+" "+" "+" "+" "+b); n++; } System.out.println(); m++; } } }