p [0,1051,12095,841341][gets.to_i]