#CCBCHBA0000091. Tam giác rỗng (Hollow Triangle)

Tam giác rỗng (Hollow Triangle)

Hollow Triangle

Source: Phước Hưng OJ

Version: Phuoc Hung OJ Extended

Problem Statement

Given nn, print nn rows of a left-aligned triangle; row ii contains exactly ii characters. Print * in the first and last columns of the row or anywhere on the bottom row (i=ni=n). Print . elsewhere. No spaces.

Input

One line contains integer nn.

Output

Print nn rows with row ii having length ii.

Subtasks

  • Subtask 1 (20%): 1≤n≤31\le n\le 3.

  • Subtask 2 (30%): 1≤n≤91\le n\le 9.

  • Subtask 3 (50%): 1≤n≤301\le n\le 30.

Examples

Example 1

Input:

4

Output:

*
**
*.*
****

Explanation:

The first and last positions of a row, and every position on the bottom row, are stars. For this sample, the input is 4; the displayed rows follow these rules exactly.

Example 2

Input:

1

Output:

*

Explanation:

The first and last positions of a row, and every position on the bottom row, are stars. For this sample, the input is 1; the displayed rows follow these rules exactly.