In a forest, a number of apes equal in number to the square of 1/8 of the total number of apes are noisy. The remaining 12 apes are on a nearby hill irritated. What is the total number of apes in the pack?