Heximal
시간 제한5초메모리 제한1024 MB
최대 50만 자리의 십진 정수가 주어질 때, 이를 6진법으로 나타냈을 때의 자릿수를 구한다.
문제
The base-6 numeral system is also called the heximal numeral system. We say a string is a heximal number if for every and implies . The value represented by in the heximal numeral system is . For example, the value of the heximal number equals the value of the decimal number .
Harry asks you to convert a very large base-10 number to base-6. Since the conversion result can be very long, it is too hard for Harry to verify the result by himself. So, you just need to tell Harry the length of the conversion result. For example, if , then you just need to tell Harry the length of the conversion result is .
입력
The input contains exactly one integer in decimal.
출력
Output the length of the base-6 representation of .
제한
- .