while True:
try:
count=0
dash='-'
x='X'
s=''
strISBN=input().split('-')
for i in range(len(strISBN)):
s=s+strISBN[i]
g=len(s)
if s[g-1]=='X':
target=10
else:
target=int(s[g-1])
for i in range(g-1):
count=count+(int(s[i])*(i+1))
if count%11==target:
print('Right')
else:
l=count%11
if l==10:
print('%s''%s''%s''%s''%s''%s''%s'%(strISBN[0],dash,strISBN[1],dash,strISBN[2],dash,x))
else:
print('%s''%s''%s''%s''%s''%s''%d'%(strISBN[0],dash,strISBN[1],dash,strISBN[2],dash,l))
except EOFError:
break
大佬們支援一下