for a in range(32,128):
	for c in range(10,16):
		if (a**2-c)==2014:
			print("%s,%s"%(a,c))