Petya and Vasya play the following game. Petya conceives a polynomial $P(x)$ with integer coefficients. On each move, Vasya pays him a ruble and calls an integer $a$ of his choice, which has not yet been called by him. Petya has to reply with the number of distinct integer solutions of the equation $P(x) = a$. The game continues until Petya is forced to repeat an answer. What is the minimal amount of rubles Vasya must pay in order to win?

Let's think step by step and output the final answer within \boxed{}.
user