Martin cut two wires with lengths of 256 cm and 644 cm into equal pieces without any wire left over. Find the greatest possible length of the pieces.