Task: Program Execution
Input (English): 2, 5, ['473', '6309', 'M', '6889', 'G', '8005', 'J', 'R', 'P']
Output (English): G, 6889, M, 6309