Task: Program Execution
Input (English): a, g, C, 1437, 8209, 531, 8849, 5253, G
Output (English): 4