Task: Program Execution
Input (English): aabmmabambbab
Output (English): mabam