https://www.acmicpc.net/problem/4153
피타고라스의 수를 사용하여 직각삼각형을 알아본다. 을 이용하였다.
while True:
x, y, z = map(int,input().split())
if x == y == z == 0:
break
m = max(x, y, z)
result = (m ** 2) * 2 == x**2 + y**2 + z**2
if result:
print("right")
else:
print("wrong")