Task: Program Execution
Input (English): 2, 5, ['1699', '4671', '7975', '5493', '1179', '9445', 'P', '5157', '1445', '4159', 'p', '2131', 'k', 'X', 'w', 'W']
Output (English): 4671, P, 2131