while(True):
    num_list = list(map(int, input().split()))
    if(sum(num_list) == 0):
        break
    
    hypo = max(num_list); num_list.remove(hypo)
    num = sum(list(map(lambda x : x ** 2, num_list)))
    if((hypo ** 2) == num):
        print('right')
    else:
        print('wrong')

'# 코딩 문제 관련 > 파이썬' 카테고리의 다른 글

백준 1002번(python)  (0) 2019.07.05
백준 3053번(python)  (0) 2019.07.05
백준 3009번(python)  (0) 2019.07.05
백준 1085번(python)  (0) 2019.07.05
백준 2869번(python)  (0) 2019.07.04