Task: Program Execution
Input (English): J, 7249, 8227, M, g, 3267, 9117, d
Output (English): J, M, g, d