Task: Program Execution
Input (English): 6387, 3671, T, 4435, 315, 7955, F, 2009, K, B, 1023, h, D, G, 4753, 7889, 4087, d, B
Output (English): 42524