# coding: utf-8

import sys

input = sys.stdin.readline



N = int(input().replace(" ", ""))

print(("Yes" if N**0.5 == int(N**0.5) else "No"))

# coding: utf-8

import sys

input = sys.stdin.readline



N = int(input().replace(" ", ""))

print(("Yes" if (N**0.5).is_integer() else "No"))

# coding: utf-8
import sys

input = sys.stdin.readline
N = int(input().replace(" ", ""))
print(("Yes" if N**0.5 == int(N**0.5) else "No"))

# coding: utf-8
import sys

input = sys.stdin.readline
N = int(input().replace(" ", ""))
print(("Yes" if (N**0.5).is_integer() else "No"))

-print(("Yes" if N**0.5 == int(N**0.5) else "No")) +print(("Yes" if (N**0.5).is_integer() else "No"))