https://www.acwing.com/problem/content/435/
#include<bits/stdc++.h>
using namespace std;
int a(char a){
return a-'0';
}
int main(){
char s[20];
cin>>s;
int k=1;
int ans=0;
for(int i=0;i<=10;i++){
if(s[i]>='0'&&s[i]<='9'){
ans+=a(s[i])*k;
k++;
}
}
if(ans%11==a(s[12])||(ans%11==10&&s[12]=='X'))printf("Right");
else{
s[12]=ans%11==10?'X':ans%11+'0';
printf("%s",s);
}
return 0;
}