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