Task: Program Execution
Input (English): A, 1121, J, T, 2619, J, G, 9837
Output (English): 13577