821 - EECS_I2P(I)2015_Chen_Lab2 Scoreboard

Time

2015/09/30 08:30:00 2015/09/30 09:50:00

Clarification

# Problem Asker Description Reply Replier Reply Time For all team

# Problem Pass Rate (passed user / total user)
10732 Encoding

10732 - Encoding   

Description

Given a 4-digit integer A, your task is to encode it. You should follow the steps below:

1. Receiving a 4-digit integer A.

2. Reversing A to get a new number B.

3. Multiplying A by B to get a new number C.

4. Transform the last four numbers of C by the following mapping: {1->'A', 2->'B', 3->'C', ..., 9->'I', 0->'J'}

5. Output the result.

 

For example: Given 1234 as A, you get a new number 4321 as B by reversing A. Then multiply 1234 by 4321 to produce a nwe number 5332114 as C, and transform the last four number of C, which is 2114, to the result: BAAD.

Input

A four-digit integer A.

Output

The encoding result.

Note that you do not need to print ‘\n’ at the end of the output.

Sample Input  Download

Sample Output  Download

Tags




Discuss