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: 71ms
Memory: 25316kB
Author: 13185217161
In contest: 1300

while True:
    try:
        str1=input()
        str2="".join(str1.split("-"))
        str2=str2[:-1]
        lst1=list(str2)
        s,j=0,0
        for x in lst1:
            j+=1
            s+=int(x)*j
        ns=str(s%11)
        if ns=="10":
            ns="X"
        str2=str1[:-1]+ns
        print("Right") if str2==str1 else print(str2)
    except:
        break