#Written for ACM 350+ division 2017
#Question can be found here
#https://www.hackerrank.com/contests/usc-acm-fall-2017-350-division/challenges/prismatic-pancakes
#Written By: Maxwell Villaire
#This was a trick question, all answers are "2" except for n=1
print int(raw_input() != "1")+1
