It is known that a certain polynomial at rational points takes rational values. Prove that all its coefficients are rational.