CodeLab Academy 📞 9936 6696
← List Python · Level 5: While loops Code · 50 points ← #469 #471 →

#470. When a power of 6 goes over N

You get N. Find the smallest p with 6ᵖ > N. ### Input One integer N (1 ≤ N ≤ 10¹⁵). ### Output p.

Examples

Input
42682
Output
6
Input
26158757772
Output
14

💡 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.

🔒 You can solve the first 3 problems without an account. Sign up for free to solve this one!