Task: Program Execution
Input (English): 2499, 7011, g, m, i, 749, s
Output (English): g, i, m, s