https://www.acmicpc.net/problem/4153
import java.util.*
import java.lang.String.format
fun main(args: Array<String>) {
val s=Scanner(System.`in`)
while(true){
var a=s.nextInt()
var b=s.nextInt()
var c=s.nextInt()
if(a==0&&b==0&&c==0) break
var sum=a*a+b*b+c*c
var ma=Math.max(a,Math.max(b,c))
if(sum-ma*ma==ma*ma) println("right")
else println("wrong")
}
}