John has 4 bedrooms in his house. The size of each bedroom is 12 ft by 12 ft. If he wants to change the carpet in his house, how many square feet of the carpet does he have to buy?