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

#483. Is it a power of 7?

You get n. Print `Yes` if n = 7ᵖ (p ≥ 0), otherwise `No`. ### Input One integer n (1 ≤ n ≤ 10¹⁸). ### Output `Yes` or `No`.

Examples

Input
96889010407
Output
Yes
Input
40353607
Output
Yes

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