Given a right-angled triangle with integer sides, the smaller angle formed by the two medians drawn on the the two perpendicular sides is denoted by .
Let denote the sum of the sides of the right-angled triangle minimizing the absolute difference between and among all right-angled triangles with integer sides and hypotenuse not exceeding . If more than one triangle attains the minimum value, the triangle with the maximum area is chosen. All angles in this problem are measured in degrees.