In this problem, you need to process the numerical format of the TW ID number to see whether the ID number is true or not.
Assuming that there is an ID number as M140051653, the alphabet in the ID number is the registered city/county and the rest numbers are used to verify the ID number.
To make sure the ID number is a verified ID, we need to follow the rules:
M to numerical form as 21. (We will provide the mapping table in the Input)M140051653) as a numerical form (21140051653).10 should be 0.The 1st line to the 4th line is the required mapping table for alphabet and its number, such as:
K,19
M,21
N,22
O,35
The 5th line is the ID number to be verified, such as:
M140051653
Note that the candidate will not be the same for different test cases.
The result after the verification process, print "True" if the ID number is qualified, otherwise, print "Fake"