N = int(input()) print(N//2 + 1 if N%2 == 0 else 1)