파이썬
import sys
while True:
x, y, z = map(int, sys.stdin.readline().split())
if [x, y ,z] == [0, 0, 0] :
break;
temp = [x, y, z]
temp.sort()
if temp[2]**2 == temp[1]**2 + temp[0]**2:
print("right")
else:
print("wrong")