In a city, there are four jewelers to whom the king sent 13 bags of gold. The first bag contained one gold bar, the second contained two gold bars, the third contained three gold bars, ..., and the thirteenth bag contained 13 gold bars. One of the bags was immediately lost, and the remaining jewelers distributed the bags so that each received an equal number of gold bars and an equal number of bags. The bag with one gold bar went to the first jeweler, the bag with three gold bars went to the second jeweler, and the bag with eleven gold bars went to the third jeweler. Determine which bags were given to the fourth jeweler, assuming that the gold bars were not taken out of the bags.