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.
One positive integer, X. X is smaller than 1000.
The ternary representation of the input number X.
Note that you need to print a '\n' at the end of the bit string.