This page is still under construction.

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

Drawing Snail - Rotated ㅍ

Interview

Time limit1sMemory limit512 MB

Summary
Given a cell size N, print a snail drawn as a 90-degree counterclockwise rotated ㅍ shape on a 5 by 5 grid, scaling each cell to N.
Level

Easy2 of 10

Topics
Implementation, Simulation, Matrix
Solved
No attempts yet

Problem

Seojun received a box containing a snail from his father as a birthday present. Inside the box is a snail shaped like the letter ㅍ rotated 90 degrees counterclockwise. The rotated ㅍ shape consists of 5 cells horizontally and 5 cells vertically. On the box is written a single number indicating the size of each square cell. Given the cell size N, print the snail shape in the same manner as the example output below.

Input

The first line contains the integer N (1 ≤ N ≤ 100).

Output

Print the snail with cell size N.

Examples2

  1. Example 1

    Input
    1
    
    Expected output
    @   @
    @@@@@
    @   @
    @@@@@
    @   @
    
  2. Example 2

    Input
    3
    
    Expected output
    @@@         @@@
    @@@         @@@
    @@@         @@@
    @@@@@@@@@@@@@@@
    @@@@@@@@@@@@@@@
    @@@@@@@@@@@@@@@
    @@@         @@@
    @@@         @@@
    @@@         @@@
    @@@@@@@@@@@@@@@
    @@@@@@@@@@@@@@@
    @@@@@@@@@@@@@@@
    @@@         @@@
    @@@         @@@
    @@@         @@@