300 Euclidean algorithm