Task: Program Execution
Input (English): 8, 12, ['V', 'P', 'X', '1137', '4431', '6351', '3107', 'P', 'r', 'T', '6303', '805', '543']
Output (English): P, r, T, 6303, 805