Patterns

아직 제출이 없습니다시간 제한1초메모리 제한512 MB

문제

Inspired by the Ulam spiral, which unravels strange patterns of prime numbers' distribution, Petya decided to come up with his own analog.

Petya writes down integers from 11 to n2n^2 into square table of size n×nn\times n starting from the upper left corner. Numbers from 11 to nn go into the first row, numbers from n+1n + 1 to 2n2n --- into the second row, and so on.

Then he colors cells which contain the number with no more than kk different divisors. After that, Petya studies the resulting picture in hope of finding some patterns. For example, if n=7n = 7, k=3k = 3, Petya will get the following picture:

Help Petya, print the picture which he will get after coloring, representing colored cells with asterisks <<*>>, and non-colored cells with dots <<.>>.

입력

Input contains two integers nn and kk (1n401 \le n \le 40, 1kn21 \le k \le n^2).

출력

Output nn lines, each one containing nn characters. If the jj-th cell of ii-th row of Petya's table is colored, then jj-th character of ii-th line should be equal to <<*>>, and <<.>> otherwise.