Skip to main content
Tuesday (24.11.2026) at 20:00: ALGOR Contest: Round #4 (Special Challenge) starts!

~/algor $ cat problems/case-onoltilik-son

Hexadecimal number

Easy 1000 ms 64 MB 26%
Share

Besides the digits $0$–$9$, the hexadecimal system has six more signs: A — $10$, B — $11$, C — $12$, D — $13$, E — $14$, F — $15$. An integer $n$ is given. Write it as a two-digit hexadecimal number: the first sign is $n \operatorname{div} 16$, the second sign is $n \bmod 16$.

A decimal number turned into two hexadecimal digits

Input

One integer $n$.

Output

A string of two signs, capital letters, no spaces. The first sign is written even if it is $0$ (for example, 0A for $10$).

Note

$0 \le n \le 255$

Examples

Input #1
10
Output #1
0A
Input #2
200
Output #2
C8

Sign in to submit a solution

Signing up is free and takes a minute.