Under construction

Still being built. Things may change

Seat Layout

Time limit1sMemory limit1024 MB

Summary
Given the booked seats in a 10 by 20 grid, print the layout with o for taken seats and . for empty ones.
Level

Easy1 of 10

Topics
Implementation, Array
Solved
No attempts yet

Problem

Heegwon manages one screening room at a movie theater. The seats in the room form a 10×2010\times 20 grid, and the seat numbers are shown in the figure below.

The screen is at the front, so row A is the front row and row J is the back row. Within each row, seat 1 is the leftmost and seat 20 is the rightmost.

The theater computer broke down, so the seat layout is unknown. Luckily, Heegwon still has the reservation records showing which seats the guests booked.

A reservation of A10 means the guest booked seat 10 in row A.

Help Heegwon draw the seat layout of the theater. No seat appears more than once in the records.

Input

The first line contains the number of guests NN who booked a seat (1≤N≤2001 \le N \le 200).

Each of the next NN lines gives the seat booked by one guest.

Output

Print the seat layout of the screening room. Write o for a seat taken by a guest and . for an empty seat.

Examples1

  1. Example 1

    Input
    4
    A5
    D4
    I1
    F14
    
    Expected output
    ....o...............
    ....................
    ....................
    ...o................
    ....................
    .............o......
    ....................
    ....................
    o...................
    ....................