Task: Program Execution
Input (English): M, 447, 3535, w, M
Output (English): M, w, M