题解 | #小乐乐与进制转换#
小乐乐与进制转换
http://www.nowcoder.com/practice/242eafef2a704c0ca130d563b7b3ee2d
num = int(input())
if 0 < num < 6:
print(num)
a = ""
while num >= 6:
b, c = num // 6, num % 6
a += str(c)
if b < 6:
a += str(b)
num = b
print(a[::-1])