A farmer used some poles to fence a square land. There is a door whose width is exactly a third of a side satisfying 2 door jambs are xoincided 2 poles. The distance between two poles is fixed. If he used 28 poles for each of three dides that don't have the door, then how many poles did he use?