Task: Program Execution
Input (English): G, W, 7709, M
Output (English): G, W, M