Koichi Namekata's submission of So Close Yet So Far | CodeChef