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