Task: Program Execution
Input (English): 3, 6, ['M', 'X', '3637', 'g', '1379', '5331', '7593', 'Z', '7095', '3507', '2177', '6745', 'c', '4279', '7573', '1673', 'U', '3039']
Output (English): 3637, 7095, 7573