import math

while(True):
	num = int(input("Enter an Integer: "))
	root = math.sqrt(num)
	rounded = math.floor(root)
	if(rounded**2 == root**2):
		print("perfect square!")
		break
	else:
		print("try again!")
