Task: Program Execution
Input (English): imgmgiimig
Output (English): mgm