#K85757. Minimum Rest Days

    ID: 36712 Type: Default 1000ms 256MiB

Minimum Rest Days

Minimum Rest Days

Sakamoto wants to take enough rest days over a period of N days so that he rests on at least half of them. In other words, given an integer N, you are required to calculate the minimum number of days he must rest, which mathematically is given by:

\( \lceil \frac{N}{2} \rceil \)

For instance, if N = 7, then he needs to rest for 4 days.

inputFormat

The input consists of a single line with one integer N (1 ≤ N ≤ 10^9) representing the total number of days.

outputFormat

Output a single integer which is the minimum number of rest days required. This is equivalent to ( \lceil \frac{N}{2} \rceil ).## sample

1
1