problem
solution
codes
#include<iostream>
#include<string>
using namespace std;
int ans;
int main(){
string str; cin>>str;
for(int i = 0, j = 1; i < 12; i++){
if(str[i] != '-')ans += (str[i]-'0')*j++;
}
ans %= 11; ans+='0'; if(ans == '9'+1)ans = 'X';
if(ans == str[12])cout<<"Right
";
else { str[12] = ans; cout<<str<<"
"; }
return 0;
}