#include <bits/stdc++.h>
using namespace std;
int num;
string s;
signed main(){
cin >> s;
for(int i = 0, j = 1; i < 12; i++){
if('0' <= s[i] && s[i] <= '9'){
num += int(s[i] - '0') * j;
j ++;
}
}
if(num % 11 == int(s[12] - '0')){
cout << "Right";
}
else{
for(int i = 0; i < 12; i++) cout << s[i];
cout << num % 11;
}
return 0;
}
@zenith_once
@wyyinput