PHP Compiler Testing
Ternary Converter

Have the function TernaryConverter(num) take the num parameter being passed, which will always be a positive integer, and convert it into a ternary representation. For example: if num is 12 then your program should return 110.

Examples

Input: 21
Output: 210

Input: 67
Output: 2111