def quinary(n): if n<5: return str(n) else: return quinary(n//5)+str(n%5)