Task: Program Execution
Input (English): 2, 4, ['o', 'P', '5227', 'w', 'I', 'A', '4643', 'f', '4573', 'A', '6007', '3801']
Output (English): w5227P