#include<iostream>#include<string>//#include<algorithm>usingnamespace std;intmain(){
string ISBN;
cin >> ISBN;int i =0, j =0;int sum =0;for(i =0,j =1; i < ISBN.size()-1; i++){if( ISBN[i]!='-'){
sum +=(ISBN[i]-'0')* j;
j++;}}
sum %=11;char c = sum +'0';if(sum ==10)
c ='X';if(c == ISBN.back())printf("Right");else{
ISBN.back()= c;
cout << ISBN;}return0;}