Koichi Namekata's submission of Minimum Product | CodeChef