Task: Program Execution
Input (English): 4, 7, ['X', '1185', 'B', '4907', 'W', '9895', 'I', 'P', '2637', 'i', 'Y', 'A', 'R']
Output (English): 4907W9895I