#include <iostream>
#include <iomanip>
#include <cstdlib>
#include <string>
using namespace std;
int main(){
string s;
cin>>s;
//0-970-82162-4
int m = ((int)s[] -) * ;
m += ((int)s[] - ) * ;
m += ((int)s[] -) * ;
m += ((int)s[] -) * ;
m += ((int)s[] -) * ;
m += ((int)s[] -) * ;
m += ((int)s[] -) * ;
m += ((int)s[] -) * ;
m += ((int)s[] -) * ;
int n = m % ;
int t = (int)s[] -;
if(s[] == 'X')
t = ;
if(n == t)
cout<<"Right";
else
{
if(n != )
s[] = n + ;
else
s[] = 'X';
cout<<s;
}
// cout<<setiosflags(ios::fixed)<<setprecision(4)<<s<<endl;
// cout<< setiosflags(ios::fixed)<<setprecision(4) <<c<<endl;
}