Under construction

Still being built. Things may change

Colorful Diagonals

Time limit1sMemory limit1024 MB

Summary
Given n, the task prints an n by n grid where each cell's letter depends on its distance to the nearest diagonal, cycling from a to z.
Level

Easy2 of 10

Topics
Implementation, Math
Solved
No attempts yet

Problem

Misha is into computer graphics. He wants to draw an n×nn\times n pixel square in different colors.

Misha's monitor supports 26 colors, denoted by the lowercase Latin letters from a to z. Misha colors each pixel with a color that depends on the distance from the pixel to the nearest diagonal.

Cells on the diagonals of the square are colored a. The cells adjacent to them are colored b, the adjacent cells not yet colored are colored c, and so on. After z, Misha goes back to a.

Given nn, print the picture Misha gets.

Input

The input contains a single integer nn (1≤n≤1001 \le n \le 100).

Output

Print nn lines of nn characters each: the picture Misha gets.

Examples1

  1. Example 1

    Input
    5
    
    Expected output
    abcba
    babab
    cbabc
    babab
    abcba