Task: Program Execution
Input (English): 3495, G, H, F, 5267, 1865, T, L
Output (English): 10627