modify input generation for leftmostodd