Task: Program Execution
Input (English): 2, 4, ['861', 'Y', '1103', '7703', 'P', '8545']
Output (English): Y, 1103, 7703