AtCoDeer the deer has found two positive integers, a and b. Determine whether the concatenation of a and b in this order is a square number.
import os
import sys
from math import *

a, b = map(int, input().split())

M = a * 10 * len(str(b)) + b

if int(sqrt(M)) * int(sqrt(M)) == M:
    print('Yes')
else:
    print('No')
import os
import sys
from math import *

a, b = map(int, input().split())

M = a * pow(10, len(str(b))) + b

if int(sqrt(M)) * int(sqrt(M)) == M:
    print('Yes')
else:
    print('No')