Start: Jul, 06, 2019 10:00:00
20190706Python程序设计基础培训扩展练习
End: Jul, 17, 2019 12:00:00
Time elapsed:
Time remaining:

Problem_ID: H
Result: Accepted
Time: 45ms
Memory: 25312kB
Author: 15757118133
In contest: 1300

while True:
    try:
        sum = 0
        s=input()
        isbn ="".join(s.split('-'))
        for i in range(9):
            sum +=  int(isbn[i])*(i+1)
        if sum%11 == 10:
            m= 'X'
        else:
            m= str(sum%11)
        if m == isbn[9]:
            print('Right')
        else:
            print(s[:-1]+m)
            
    except EOFError:
        break