1、
#include<bits/stdc++.h>
using namespace std;
int main()
{
int x=0;
string s;
cin>>s;
for(int i=0;i<s.size();i++)
{
if(i==0) x=x+int(s[i]-48)*1;
if(i==2) x=x+int(s[i]-48)*2;
if(i==3) x=x+int(s[i]-48)*3;
if(i==4) x=x+int(s[i]-48)*4;
if(i==6) x=x+int(s[i]-48)*5;
if(i==7) x=x+int(s[i]-48)*6;
if(i==8) x=x+int(s[i]-48)*7;
if(i==9) x=x+int(s[i]-48)*8;
if(i==10) x=x+int(s[i]-48)*9;
}
x=x%11;
int y=0;
if(s[s.size()-1]=='X') y=10;
else y=int(s[s.size()-1]-48);
if(x==y) cout<<"Right"<<endl;
else
{
for(int i=0;i<s.size()-1;i++) cout<<s[i];
if(x==10) cout<<'X'<<endl;
else cout<<x<<endl;
}
return 0;
}