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

~/algor $ cat problems/sakkizlik-sanoq-sistemasi

Octal numeral system

Easy 1000 ms 64 MB 32%
Share

A non-negative integer $n$ is given in the decimal system. Write it in the octal numeral system (digits from $0$ to $7$).

Repeated division of the number by 8; the remainders are read from bottom to top

Input

One integer $n$.

Output

The octal notation of $n$.

Note

$0 \le n \le 10^{18}$

Examples

Input #1
100
Output #1
144
Input #2
0
Output #2
0

Sign in to submit a solution

Signing up is free and takes a minute.