This page is still under construction.

Parts of this page are still being built. What you see may change.

Jeonbuk National University

Time limit1sMemory limit128 MB

Summary
Print an ASCII symbol of width N when N is odd, following fixed spacing rules; print "I LOVE CBNU" when N is even.
Level

Easy2 of 10

Topics
Implementation, Simulation
Solved
No attempts yet

Problem

The symbol of Jeonbuk National University represents balance and harmony, and a direction and goal toward intellect and ideals. It expresses restrained Korean beauty through unadorned simplicity and empty space. Depending on its orientation, the symbol carries the meanings of a Korean university, a university devoted to scholarship, and a university moving toward the future, and it stands for the philosophy and vision of "Jeonbuk National University, moving beyond growth toward maturity".

Given an integer NN, write a program that draws the Jeonbuk National University symbol of width NN using the * character.

Input

The first line contains an integer NN (3≤N≤503 \le N \le 50).

Output

If NN is odd, print the Jeonbuk National University symbol of width NN made of *. Let h=(N−1)/2h = (N-1)/2. The symbol has h+2h+2 lines:

  • The first line is NN copies of *.
  • The second line is hh spaces followed by one *.
  • Then, for each i=1,2,…,hi = 1, 2, \ldots, h, print one line consisting of h−ih-i spaces, a *, 2i−12i-1 spaces, and a *.

Do not print any spaces after the last * of a line.

If NN is even, print I LOVE CBNU.

Examples3

  1. Example 1

    Input
    3
    
    Expected output
    ***
     *
    * *
    
  2. Example 2

    Input
    4
    
    Expected output
    I LOVE CBNU
    
  3. Example 3

    Input
    7
    
    Expected output
    *******
       *
      * *
     *   *
    *     *