#define rep(i, a, n) for (int i = a; i < n; ++i) #define per(i, a, n) for (int i = n - 1; i >= a; --i) #define fi first #define se second #define pb push_back #define mp make_pair #define np next_permutation #define INF 0x3f3f3f3f #define EPS 1e-8 #define endl '\n'
intmain() { ios::sync_with_stdio(false); string s; while (cin >> s) { stringstream ss(s); char checkstring[20], temp; int cnt = 1;
while (ss >> temp) { if (temp != '-') checkstring[cnt++] = temp; } int ans = 0; rep(i, 1, 10) ans += (checkstring[i] - '0') * i; ans %= 11; if (ans == 10) ans = 'X'; else ans += '0'; if (ans != checkstring[10]) { rep(i, 0, s.length() - 1) cout << s[i]; cout << (char)ans << endl; } else cout << "Right" << endl; } }