#438. Is it a power of 3?
You get n. Print `Yes` if n = 3ᵖ (p ≥ 0), otherwise `No`.
### Input
One integer n (1 ≤ n ≤ 10¹⁸).
### Output
`Yes` or `No`.
Examples
Input
27
Output
Yes
Input
54675
Output
No
💡 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.