Task: Program Execution
Input (English): 2, 3, ['1247', '7775', 'P', '6535', 'N', '5579', '8473']
Output (English): 7775, P