Quarkqe @ 2021-09-06 10:21:32
s = list(input())
# 需要的索引号
a = [0, 2, 3, 4, 6, 7, 8, 9, 10]
t = 0
for i in range(0, 9):
t = t + int(s[a[i]]) * (i + 1)
if t % 11 == int(s[12]):
print("Right")
else:
del s[-1]
s.append(t % 11)
print("{}-{}{}{}-{}{}{}{}{}-{}".format(s[0], s[2], s[3], s[4], s[6], s[7], s[8], s[9], s[10],
s[12]))