LearnPy Hub
← Arena
EasyRating 900

Perfect Square?

Print YES if n is a perfect square, otherwise NO. n can be huge, so use math.isqrt.

Input

One integer n (0 ≤ n ≤ 10³⁰).

Output

YES or NO.

Sample 1

Input
16
Output
YES

Sample 2

Input
15
Output
NO
solution.py
Output appears here
Perfect Square? · Python Arena problem · LearnPy Hub