N = gets.to_i if N.even? puts 2 else puts 1 end