(rows, columns) = (int(x) for x in input().split())

matrix = [[f'{chr(row)}{chr(row + col)}{chr(row)}' for col in range(columns)]
          for row in range(97 , 97 + rows)]

[print(' '.join(row)) for row in matrix]