Start: Apr, 17, 2017 10:00:00
Python程序设计基础培训第四次作业
End: Apr, 23, 2017 14:00:00
Time elapsed:
Time remaining:

Problem_ID: H
Result: Accepted
Time: 146ms
Memory: 21428kB
Author: 13567175595
In contest: 1088

while True:
	try:
		bm=raw_input()
		bmn=bm.replace("-","")
		sum=0
		for i in range(len(bmn)-1):
			sum+=int(bmn[i])*(i+1)	
		t=sum % 11
		if t==10:
			s="X"
		else:
			s=str(t)		
		if s==bmn[len(bmn)-1]:
			print "Right"
		else:
			print bm[:len(bm)-1]+s		
	except EOFError:
		break