/** * A~Z 65--90 */ import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner=new Scanner(System.in); int n=scanner.nextInt(); int m=scanner.nextInt(); int temp=65; char [][]chars=new char[n][m]; if (1 <= n&&m <= 26){ for (int i = 0; i < n; i++) { for (int i1 = 0; i1 < m; i1++) { if (i==i1){ chars[i][i1]=(char)65; }else if (i1>i){ chars[i][i1]=(char)(65+i1-i); }else { chars[i][i1]=(char)(65+i-i1); } System.out.print(chars[i][i1]); } System.out.println(); } } } }