Production of light-flavor hadrons in pp collisions at √s=7and√s=13TeV