Task: Program Execution
Input (English): 9, 11, ['B', '7329', 'a', 'l', 'm', 'X', 'J', '1387', '6595', 'Z', '5115', 'j', '31', '1473', 'j']
Output (English): 5115, Z, 6595