#863. Digit sum in base 3
You get n. Write n in base 3 and find the sum of its digits with a function `digit_sum(n, base)`.
### Input
One integer n (0 ≤ n ≤ 10⁹).
### Output
A number.
Examples
Input
175243816
Output
20
Input
882386334
Output
18
💡 You can solve it with Python, JavaScript or blocks. Read the input line by line with input(). Don't print a question (like input("Number: ")). Print exactly what the output asks for, nothing more.