Several pupils wrote a solution of a math problem on the blackboard on the break. When the teacher came in, a pupil was just clearing the blackboard, so the teacher could only observe that there was a rectangle with the sides of integer lenghts and a diagonal of lenght $ 2002$. Then the teacher pointed out that there was a computation error in pupils' solution. Why did he conclude that?