Problem MiddleCode from Match 603