https://www.acmicpc.net/problem/4153
while True: a,b,c=map(int,input().split()) if a==0 and b==0 and c==0: break sum=a*a+b*b+c*c ma=max(a,max(b,c)) if sum==2*ma*ma: print("right") else: print("wrong")