A total of 376 hats were sold for the school play. They were either big hats or small hats. The number of small hats was sold three times the number of big hats. How many big hats was sold?​