The altitude of a right triangle is 777 cm less than its base. If the hypotenuse is 131313 cm, find the other two sides.