Welcome to ZOJ
Select Problem
ZOJ Problem Set - 3883
Scan Code

Time Limit: 2 Seconds      Memory Limit: 65536 KB

Edward is writing an editor. After he wrote the function to get input from his special keyboard, he found that what he got is scan code, instead of ASCII code. He is very busy, so he gives you the easy task, translate the scan code to a string.

The scan code is very simple, when you press a key, the keyboard will send a make code of this key to computer (if you press the key for a long time, keyboard will send the make code to computer many times), and when you release a key, the keyboard will send a brake code of this key to computer. When computer received a make code, a character or function for the key will do on the editor (Caps Lock is off at the beginning) excepted the Caps Lock key (do the function when press the key).


Input will consist of multiple test cases.

Each case has one line, the scan code received from keyboard in Hex (scan code table is at Hint section), the length is less than or equal to 1000000.

Input's validation is guaranteed.


For each case, output the string on the editor and put a newline at the end.

Sample input


Sample output



Here is the scan code table:

Scan Code Table

Author: LU, Yi
Source: ZOJ Monthly, July 2015
Submit    Status