#K69407. Taco Pattern Grid

    ID: 33079 Type: Default 1000ms 256MiB

Taco Pattern Grid

Taco Pattern Grid

Given an integer n (where \(1 \le n \le 1000\)), output an \(n \times n\) grid where the characters 'A' and 'B' alternate like a chessboard. In other words, for any cell at row \(i\) and column \(j\) (0-indexed), output 'A' if \((i+j) \mod 2 = 0\) and 'B' otherwise.

The grid should be printed with each row on a new line, and no extra spaces should exist between the characters in a row.

inputFormat

The input consists of a single integer n indicating the size of the grid.

Input is read from standard input (stdin).

outputFormat

Output the generated grid pattern. The grid should consist of n lines, each containing exactly n characters ('A' or 'B').

Output should be written to standard output (stdout).

## sample
1
A