def yn(hantei, yes='Yes', no='No'): print(yes if hantei else no) def p(*args): print(*args) n=int(input()) p(1 if n%2==1 else n//2+1)