Task: Program Execution
Input (English): 1391, 9705, 7027, T, Q, 849, B, 6927, 9503, 7901, 5023
Output (English): T, Q, B