无脑题,直接模拟就行 =.=
#include<iostream>
using namespace std;
char q[15];
int main(){
cin>>q;
int sum = (q[0] - '0')*1 + (q[2]-'0')*2 +
(q[3]-'0')*3 + (q[4]-'0')*4 +
(q[6]-'0')*5 + (q[7]-'0')*6 + (q[8]-'0')*7+
(q[9]-'0')*8 + (q[10]-'0')*9;
char ch = (sum % 11) + '0';
if((sum % 11) == 10){
ch = 'X';
}
if(ch == q[12]){
cout<< "Right" << endl;
}
else{
q[12] = ch;
cout<<q<<endl;
}
return 0;
}