Star Printing - 13

Time limit1sMemory limit128 MB

Summary
Given N, print a pyramid of stars that grows one star per line up to N then shrinks back down, using 2N-1 lines total.
Level

Easy1 of 10

Topics
Implementation, Simulation
Solved
No attempts yet

Problem

You are given an integer N. From the first line through the N-th line, print one more star on each line. Then, through the 2×N-1-th line, print one fewer star on each line.

Input

The first line contains an integer N. N is between 1 and 100 inclusive.

Output

Print exactly 2×N-1 lines. Each line must contain only the required number of stars.

Examples1

  1. Example 1

    Input
    3
    
    Expected output
    *
    **
    ***
    **
    *