n = int(input()) rooms = (n / 2) + 1 print(rooms)