Under construction

Still being built. Things may change

Vote Counting

Time limit1sMemory limit1024 MB

Summary
Given vote counts for several candidates, print each count as tally marks with groups of five drawn as ++++ followed by a space.
Level

Easy2 of 10

Topics
Implementation, Math
Solved
No attempts yet

Problem

After voting ends, the votes must be counted. Counting is usually done on a chalkboard, with one more stroke added for each vote.

In this problem, counting follows these rules.

  • Every candidate starts at 00 votes, which means nothing is drawn yet.
  • Each time a candidate receives a vote, draw | at the end.
  • However, each time a candidate receives 55 votes, do not draw the |. Instead, draw a horizontal line across the four existing | to make ++++, then add one blank space at the end.

For example, a candidate with 1212 votes has ++++ ++++ || on the board.

Input

The first line contains the number of candidates TT. (1≤T≤100)(1\le T\le 100)

The next TT lines each contain the number of votes nn that a candidate received. (1≤n≤100)(1\le n\le 100)

Output

For each candidate, print the result drawn on the board, one result per line.

Examples1

  1. Example 1

    Input
    3
    12
    1
    5
    
    Expected output
    ++++ ++++ ||
    |
    ++++