One angle of a triangle is equal to the sum of its other two angles. Prove that the triangle is right-angled.