Task: Program Execution
Input (English): M, w, remains, R, z
Output (English): MwremainsRz