Ten pairwise distinct non-zero numbers are such that for each two of them either the sum of these numbers or their product is a rational number.
Prove that the squares of all numbers are rational.