while True:
try:
a = 1
b = 0
c = input('请输入一个数字:')
c = eval(c)
i=1
while i<=c:
y=abs(i*i-23)/41
y=y**0.5
s=41*int(y)*int(y)
s1=i*i
if int(y)==y:
if y<c and s1-s==23 :
print("x=",i,"y=",int(y))
i+=1
except:exit()
while True:
try:
a = 1
b = 0
c = input('请输入一个数字:')
c = eval(c)
i=1
while i<=c:
y=abs(i*i+23)/41
y=y**0.5
s=41*int(y)*int(y)
s1=i*i
if int(y)==y:
if y<c and s1-s==-23 :
print("x=",i,"y=",int(y))
i+=1
except:exit()