Jack has three pipes with lengths of 126, 198, and 270. He wants to cut all three pipes into pieces of equal length with no scraps. The length of the pieces must be expressed as a whole number of feet. What is the minimum about of pieces Jack can obtain?