Problem: You have a hobby of building blocks. You are especially fond of building blocks that are squares. And what you even like more, is to arrange them into a square of square building blocks! /n However, sometimes, you are unable to achieve this goal of yours. If you just had a way to know, whether you're currently working in vain… Wait! That's it! You just have to check if your number of building blocks is a perfect square.
Input: Input is an integer, determine if it's a square number or not.
Output: Output should be YES if the number is a perfect square otherwise NO.
Constraints: Input is an integer (it can be a negative number too)
Sample Input: 25
Sample Output:
YES
i = int(input())
if i < 0:
print('NO')
print('YES' if int(i**.5)**2 == i else 'NO')