solve pigeon list