solve koi_cyc