-
#include <bits/stdc++.h> using namespace std; int main(void) { int x, y, z; while (1) { cin >> x >> y >> z; if (x == 0) return 0; int M = max(max(x, y), z); int m = min(min(x, y), z); int u = x + y + z - M - m; if (m * m + u * u == M * M) cout << "right" << "\n"; else cout << "wrong" << "\n"; } }