Valid perfect square



Problem to check the given number is perfect square or not.



Example-1:


Input    : n = 25
Output   : Yes 


Example-2:


Input    : n = 10
Output   : No







Solution




import math

n = 25

a = math.sqrt(n)

b = int(a)*int(a)

if(b==n):

    print("Yes")

else:

    print("No")



Output



Yes