Ioana has three ropes whose lengths are 39 inches, 52 inches and 65 inches. She wants to cut the ropes into equal length pieces for magic tricks. No rope is to be wasted. What is the greatest number of inches possible in the length of each piece