You are given 128 feet of chain link fence. It is your job to fence off a square shaped pen for several dogs. The pen must be 1024 square feet, in order for each dog to be comfortable. What should be the length of each side of the pen?