puts [0,1,10000200001, 10000300002, 10000300002, 10000400003, 10000400003, 10000400004, 10000500004, 10000500004, 10000500006, 10000500006][gets.to_i]