시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 256 MB41426523868.588%

문제

In the movie The Martian (2015), astronaut Mark Watney, one of the crew members of Mission Ares III, was left behind on Mars due to an unexpected incident during the surface exploration on the planet Mars. The communication with Earth was quasi-inexistent. Fortunately, Mark Watney managed to establish a very simple way to communicate with NASA at the mission control base on Earth through hexadecimal codes.

Mark could receive one simple code at a time which he could detect as a hexadecimal digit or hex code including 0-9 and A-F. Then he could transform a pair of hex digits into a character since he knows how to look up the ASCII table. Fortunately enough he has an ASCII table at hand (who would miss an ASCII table on voyage to Mars!! ^_^). 

If Mark receives a code sequence “4869204D61726B”, he can decode it into the message “Hi Mark”. However, decoding the hex codes manually is very slow and inefficient. Therefore your task is to help Mark Watney write a program to decode these hex codes. 

입력

The input contains several lines of hex codes only (0-9, A-F). Each line contains an even number of hex digits that you have to transform into a plain text message. One pair of hex digits corresponds to a single character. There are less than 250 hex digits in each line. The input contains several lines of strings. You do not know in advance how many lines there are but it is guaranteed that the input contains less than 1,000 lines. 

출력

For each line of hex codes, print out the corresponding text message. 

예제 입력 1

4869204D61726B
41726520796F7520616C6976653F

예제 출력 1

Hi Mark
Are you alive?