Problem: Butterfly

Write a program which takes an integer n from the console and draws a butterfly 2 * n - 1 columns wide and 2 * (n - 2) + 1 rows long as in the examples below. The left and right parts are n - 1 wide.

Input Data

The input is an integer n in the interval [3 … 1000].

Output Data

Print in the console 2 * (n - 2) + 1 text rows, which make up the butterfly as in the examples.

Sample Input and Output

Input Output Input Output
3 *\ /*
  @  
*/ \*
5 ***\ /***
---\ /---
***\ /***
    @    
***/ \***
---/ \---
***/ \***
Input Output
7 *****\ /*****
-----\ /-----
*****\ /*****
-----\ /-----
*****\ /*****
      @      
*****/ \*****
-----/ \-----
*****/ \*****
-----/ \-----
*****/ \*****

results matching ""

    No results matching ""