简单题
#include <bits/stdc++.h>
using namespace std;
int main(void){
string s;
cin >> s;
int a[15];
for(int i = 0, j = 0; i < s.size(); i++){
if(s[i] != '-')
a[j++] = (int)(s[i]-'0');
}
int sum = 0;
for(int i = 0; i < 9; i++)
sum += a[i] * (i+1);
int m = sum % 11;
if(m < 10){
if(a[9] == sum % 11)
printf("Right");
else
cout << s.substr(0, 12) << m;
}
else{
if(a[9] == (int)('X'-'0'))
printf("Right");
else
cout << s.substr(0, 12) << 'X';
}
return 0;
}