2025-06-23 20:05:18 +09:00

5 lines
152 B
Python

while True :
a,b,c = sorted(map(int, input().split()))
if(a==b==c==0) : break
if(a**2+b**2==c**2) : print("right")
else : print("wrong")