Under construction

Still being built. Things may change

Jinheung Seminar Rooms

Time limit1sMemory limit1024 MB

Summary
Given N seminar names from a fixed table, print the room number of each one in the order they were given.
Level

Easy1 of 10

Topics
Implementation, Hash map
Solved
No attempts yet

Problem

The Korea Information Technology Promotion Agency holds many kinds of seminars.

Besides the algorithm, data analysis, artificial intelligence, cyber security, and network seminars for experts, it holds a startup seminar for prospective founders and a college entrance seminar for teenagers.

Today all seven seminars above are held. Jinheung applied for NN (1≤N≤71 \le N \le 7) of them. Use the table below to find the room for each seminar.

SeminarRoom
Algorithm204
DataAnalysis207
ArtificialIntelligence302
CyberSecurityB101
Network303
Startup501
TestStrategy105

Input

The first line contains the number of seminars NN that Jinheung applied for.

Each of the next NN lines contains one seminar from the table above. Each seminar is given as one of the seven names in the table, and no seminar appears twice.

Output

Print NN lines. Print the room of each seminar on its own line, in the order the seminars were given.

Examples2

  1. Example 1

    Input
    4
    Algorithm
    Network
    CyberSecurity
    Startup
    
    Expected output
    204
    303
    B101
    501
    
  2. Example 2

    Input
    2
    Network
    Algorithm
    
    Expected output
    303
    204