12032 - decimal to ternary   

Description

 Input one positive integer, X. The task is to translate the decimal number X into ternary (三進位) number, and output the result.

X is smaller than 1000. 

Input

One positive integer, X.  X is smaller than 1000.

Output

The ternary representation of the input number X.

Note that you need to print a '\n' at the end of the bit string.

Sample Input  Download

Sample Output  Download

Tags




Discuss