#abc324b. B - 3-smooth Numbers
B - 3-smooth Numbers
Score : points
问题描述
给定一个正整数 。若存在整数 和 使得 ,输出 Yes
;否则,输出 No
。
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
You are given a positive integer . If there are integers and such that , print Yes
; otherwise, print No
.
Constraints
- is an integer.
Input
The input is given from Standard Input in the following format:
Output
Print a single line containing Yes
if there are integers and that satisfy the condition, and No
otherwise.
Sample Input 1
324
Sample Output 1
Yes
For , we have , so the condition is satisfied. Thus, you should print Yes
.
Sample Input 2
5
Sample Output 2
No
There are no integers and such that . Thus, you should print No
.
Sample Input 3
32
Sample Output 3
Yes
For , we have , so you should print Yes
.
Sample Input 4
37748736
Sample Output 4
Yes
update @ 2024/3/10 01:45:42