CodeLab Academy 📞 9936 6696
← List Python · Level 9: Functions and dicts Code · 90 points ← #851 #853 →

#852. Numbers coprime to 6

You get n. How many numbers from 1 to n have GCD 1 with 6? ### Input One integer n (1 ≤ n ≤ 10⁵). ### Output A number.

Examples

Input
12634
Output
4211
Input
92035
Output
30679

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