https://www.acmicpc.net/problem/4153
using System;
class Program
{
static void Main() {
for(;;){
string[] s=Console.ReadLine().Split(' ');
int a=int.Parse(s[0]);
int b=int.Parse(s[1]);
int c=int.Parse(s[2]);
if(a==0&&b==0&&c==0) break;
int sum=a*a+b*b+c*c;
int ma=Math.Max(a,Math.Max(b,c));
if(sum-ma*ma==ma*ma) Console.WriteLine("right");
else Console.WriteLine("wrong");
}
}
}