Task: Program Execution
Input (English): 2, 3, ['g', '87', '213', '7455', '2649', '6703', 'G', '7651', '7365', '2815', '4007']
Output (English): 87, 2649, 7651, 4007