11610 - 231001_10/16_quiz1-3   

Description

Input an integer n, and print the hex number of n 

1 ≦ n < 16 = 1,048,576

If n = 4040, the hex number of n is FC8, since

     162  *  F + 161  * C + 160  * 8 

 = 256 * 15 + 16   * 12 +  1    * 8

 = 4040

You need to use the following table to help you print the result.

10

A

11

B

12

C

13

D

14

E

15

F

Input

An positive integer n < 1,048,576​

Output

Output: The hexadecimal number of n

Output format:

  • Output must be the number or the capital letter(大寫英文字母).

  • Change a new line at the end.

Sample Input  Download

Sample Output  Download

Tags




Discuss