#abc157a. A - Duplex Printing

A - Duplex Printing

Score : 100100 points

问题描述

Takahashi 想要打印一份包含 NN 页的双面文档,其中一张纸可以打印两页数据。

他至少需要多少张纸?

以上为通义千问 qwen-max 翻译,仅供参考。

Problem Statement

Takahashi wants to print a document with NN pages double-sided, where two pages of data can be printed on one sheet of paper.

At least how many sheets of paper does he need?

Constraints

  • NN is an integer.
  • 1N1001 \leq N \leq 100

Input

Input is given from Standard Input in the following format:

NN

Output

Print the answer.

Sample Input 1

5

Sample Output 1

3

By printing the 11-st, 22-nd pages on the 11-st sheet, 33-rd and 44-th pages on the 22-nd sheet, and 55-th page on the 33-rd sheet, we can print all the data on 33 sheets of paper.

Sample Input 2

2

Sample Output 2

1

Sample Input 3

100

Sample Output 3

50

update @ 2024/3/10 17:13:57