The diagonal of a rectangle is 340 millimeters, while the longer side is 277 millimeters. Find the shorter side of the rectangle and the angles the diagonal makes with the sides. (Round each answer to the nearest whole number. Enter the angles from smallest to largest value.)