xzc_yhxr @ 2024-01-28 23:08:21
#include<bits/stdc++.h>
using namespace std ;
string s , shi ;
int M ;
int main(){
cin >> s ;
M = (s[0]-48)*1+(s[2]-48)*2+(s[3]-48)*3+(s[4]-48)*4+(s[6]-48)*5+(s[7]-48)*6+(s[8]-48)*7+(s[9]-48)*8+(s[10]-48)*9 ;
M = M % 11 ;
M == 10 ? shi = 'X' : shi = M + '0' ;
M + '0' == s[12] ? cout << "Right" << endl : cout <<s[0]<<s[1]<<s[2]<<s[3]<<s[4]<<s[5]<<s[6]<<s[7]<<s[8]<<s[9]<<s[10]<<s[11]<< shi << endl ;
return 0 ;
}