Task: Program Execution
Input (English): 4, 5, ['2819', 'h', '8453', 'M', 'G', '677', 'P']
Output (English): M, G