n=int(input())
import math
if n%2==0:
    m=n//2
    print(m+1)
else:
    m=n//2+1
    print(1)