a = io.read("*n") print(a % 2 == 1 and 1 or math.floor(a / 2) + 1)