#include<stdio.h>
int main()
{char arr[13]; //存放13位的ISBNint i, j;scanf("%s",arr);int s = 0;for(i=0, j=1; i<11; i++){if(arr[i] != '-'){s += (arr[i]-'0')*j; //将字符换成int累加:0×1+6×2+……+2×9=158j++; //执行if的时候加,不执行不加}}int m = s % 11; //最后一位识别码if(m == arr[12]-'0' || (m == 10 && arr[12] == 'X')){printf("Right\n");}else{for(i=0; i<12; i++) //输出前12位{printf("%c", arr[i]);}if(m == 10)//判断第13位是否为'X'{printf("X");}else {printf("%d",m);}}
}