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

Problem_ID: H
Result: Accepted
Time: 62ms
Memory: 25184kB
Author: 15757118136
In contest: 1296

##输入一个字符串,求识别码
def f(s):
    n = (int(s[0])*1 + int(s[2])*2 + int(s[3])*3 + int(s[4])*4 + int(s[6])*5 + int(s[7])*6 + int(s[8])*7 + int(s[9])*8 + int(s[10])*9) % 11
    if n == 10:
        n = "X"
    return str(n)

while True:
    try:
        s = input()
        n = f(s)
        if n == s[-1]:
            print("Right")
        else:
            print(s[0:12] + n)

    except EOFError:
        break