JasonTesla @ 2023-02-12 21:26:31
n=input().strip().split('-')
k=n[-1]
n.pop(-1)
z=1
h=0
for i in n:
for j in i:
h+=(int(j)*z)%11
z+=1
h=h%11
if h==int(k):
print('Right')
else:
if h!=10:
print('-'.join(n),end='-')
print(h)
else:
print('-'.join(n),end='-')
print('X')