#P1001. ISBN

ISBN

Description

Every officially published book has an ISBN number corresponding to it. The ISBN code consists of a 9 digit number, a 1 digit identifier, and a 3 digit delimiter. Its specified format is xxxxxxxxxxx-xxx-xxxxx-x , where the symbol - is the delimiter (a minus sign on the keyboard) and the last digit is the identifier. For example, 06708216240-670-82162-4 is a standard ISBN code. The first digit of the ISBN code indicates the publishing language of the book, for example, 00 represents English; The three digits after the first delimiter - represent the publishing house, for example, 670670 represents Viking Publishing House; The five digits after the second delimiter represent the number of the book published by the publisher; The last digit is the identification code.

The calculation method of the identification code is as follows:

Multiply the first digit by 11 and the last digit by 2...2... , and so on. Use the result mod11mod11 to obtain the remainder, which is the identification code. If the remainder is 1010 , the identification code is the uppercase letter XX . For example, the identification code 44 in the ISBNISBN number 06708216240-670-82162-4 is obtained as follows: multiply the 99 digits 067082162067082162 from left to right by $1, $2,..., 99 , and then add them up, which is 0×1+6×2+...+2×9=1580 × 1+6 × 2+...+2 × 9=158 . Then take the result 44 of 158mod11158mod11 as the identification code.

Your task is to write a program to determine if the identification code in the ISBNISBN number input is correct. If it is correct, only RightRight will be output; If there is an error, output the ISBNISBN number that you believe is correct.

Enter description

A character sequence representing the ISBNISBN number of a book (ensuring that the input conforms to the format requirements of the ISBNISBN number).

Output description

a If the identification code of the ISBNISBN number entered is correct, output RightRight . Otherwise, output the correct ISBNISBN number (including the delimiter - ) according to the specified format.