FelixCham @ 2024-07-06 17:45:19
ISBN = input()
a=[]
recognizer = 0
new_ISBN = ""
for i in range(len(ISBN)):
if ISBN[i] != '-':
a.append(ISBN[i])
for i in range(9):
recognizer += int(a[i]) * (i+1)
recognizer %= 11
if recognizer == int(a[9]):
print("Right")
else:
if recognizer == 10:
new_ISBN = ISBN[:-1] + "X"
else:
new_ISBN = ISBN[:-1] + str(recognizer)
print(new_ISBN)