#include
#include
using namespace std;
ifstream fin ("isbn.in");
ofstream fout ("isbn.out");
string yuan;
int main ()
{int i,len,temp,sum;
fin>>yuan;
sum=0;
temp=1;
len=yuan.size();
for(i=0;i
{sum+=(yuan[i]-'0')*temp;
temp++;
}
sum%=11;
if(yuan[len-1]-'0'==sum)
fout<<"Right"<
if(sum==10&&yuan[len-1]=='X')
fout<<"Right"<
{for(i=0;i
fout<<'X'<
fout<
return 0;
}