#include<bits/stdc++.h>
using namespace std;
int main(){
char a;
int s = 0 , m[9];
cin >> a;
for(int i = 0; i < 10; i++){
if(i < 9){
m[i] = a[i];
}
if((a[i] = getchar()) != "-"){
s += (i + 1) * a[i];
}
}
s = s % 11;
if(a[-1] == s){
cout << "Right" << endl;
} else {
cout << m << s << endl;
}
return 0;
}