If angles A, B, and C are the angles of a triangle such that sin(A+B)=1/sin(C) and cos(A+B)=cos(C), then show that the triangle is a right triangle.