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: 50ms
Memory: 25196kB
Author: 13600513276
In contest: 1296

while True:
    try:
        n=input()
        m=n.replace("-","")
        s=0
        for j in range(1,10):
            s=s+j*int(m[j-1])
        y=s%11
        if y==10:
            if n[-1]=="X":
                print("Right")
            else:
                l=n[:-1]+"X"
                print(l)
        else:
            if n[-1]==str(y):
                print("Right")
            else:
                l=n[:-1]+str(y)
                print(l)
    except EOFError:
        break