1999 LSU Computer Science High School Programming Contest
Novice and Veteran Problem 2
Take a letter - Maria

The We-Got-It Answering Service has a novel idea. They take messages by entering them with a numeric keypad. Each letter or digit is entered as two digits. They are hiring you to write a program to decode the messages so that clients can read them.

Below is a chart of how each character is represented:

A     21          B     22          C     23
D     31          E     32          F     33
G     41          H     42          I     43
J     51          K     52          L     53
M     61          N     62          O     63
P     71          Q     72          R     73          S     74
T     81          U     82          V     83
W     91          X     92          Y     93          Z     94
0     00          1     01          2     02          3     03          4     04
5     05          6     06          7     07          8     08          9     09
.     11          ?     12          ,     13          :     14          @     15
" "   16          EOLN  17          EOM   18          EOF   19
NOTE: " " is a blank or space, EOLN means End Of LiNe, EOM means End Of Message, and EOF means End Of File.

As you can see, this chart allows them to translate most sentences into numbers. Your job is to read in a series of numbers and write out the original messages. Each message will end when you encounter an EOM. You stop processing when you encounter EOF.

Sample Input Data:

42 
32 
53 
53 
63 
16 
91 
63 
73 
53 
31 
11 
18
05 
82 
73 
03 
17 
82 
17 
23 
04 
62 
17 
17 
73 
03 
04 
31 
12 
18
19

Sample Output:

Message 1:
HELLO WORLD.

Message 2:
5UR3 
U 
C4N 

R34D?

NOTE: One blank line should separate each message in your output.



Return to the Top of Page, First Page, Novice Problem Set, or Veteran Problem Set.


Clarifications:







Return to the Top of Page, First Page, Novice Problem Set, or Veteran Problem Set.



The statements and opinions included in these pages are those of the LSU High School Programming Contest Staff only. Any statements and opinions included in these pages are not those of Louisiana State University or the LSU Board of Supervisors.
© 1999 LSU High School Programming Contest

Return to the LSU High School Programming Contest Homepage