print("x y z")
for x in range(1,11):
for y in range(1,11):
for z in range(1,11):
if x*x+y*y==z*z:
print(x," ",y," ",z)
print("x y z")
for x in range(1,11):
for y in range(1,11):
for z in range(1,11):
if x*x+y*y==z*z:
print(x," ",y," ",z)