Sunghyeon Jo's submission of Jam | CodeChef