Problem:
Score : 100 points

Problem Statement

Takahashi wants to print a document with N 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

N is an integer.

1 \leq N \leq 100

Input

Input is given from Standard Input in the following format:

N

Output

Print the answer.

Sample Input 1

5

Sample Output 1

3

By printing the 1-st, 2-nd pages on the 1-st sheet, 3-rd and 4-th pages on the 2-nd sheet, and 5-th page on the 3-rd sheet, we can print all the data on 3 sheets of paper.

Sample Input 2

2

Sample Output 2

1

Sample Input 3

100

Sample Output 3

50

Solution in Java8 (OpenJDK 1.8.0) (judge verdict: Wrong Answer)

import java.io.*;
import java.util.Scanner;
import java.util.ArrayList;
import java.util.Arrays;

public class Main {
  
  public static void main(String[] args){
    
    try {
      
      //標準入力受け取り
      Scanner scan            = new Scanner(System.in);
      ArrayList<Integer> strs = new ArrayList<Integer>();
      
      while (scan.hasNext()){
      	strs.add(scan.nextInt());
      }
      
      //変数へ代入
      int [][] bingo  = new int[3][3]; //ビンゴ表
      int      row    = 0;             //チェック値 横
      int      column = 0;			   //チェック値 縦
      String   jadge  = "No";          //判定
      
      for (int x=0; x<9; x++) {
      	for (int y=9; y<strs.size(); y++){
            bingo[x/3][x%3] = 0;
            //穴が開いた場合
            if (strs.get(x) == strs.get(y) ) {
	          bingo[x/3][x%3] = 1;
              break;
            }
        }
      }
      
      //ビンゴ有無チェック
      //横
      loop: for (int i=0; i<3; i++){
      	for(int j=0; j<3; j++){
          
          row += bingo[i][j];
          column += bingo[j][i];
          if (row == 3 || column ==3){
            jadge ="Yes";
            break loop;
          } 
        }
        row    = 0;
        column = 0;
      }
      
      //斜め
      if(bingo[0][0]+bingo[1][1]+bingo[2][2]==3){
        jadge = "Yes";
      }
      
      if(bingo[0][2]+bingo[1][1]+bingo[2][0]==3){
        jadge = "Yes";
      }
      
      System.out.println(jadge);
      
    } catch (Exception e) {
      
      System.out.println("error");

    }
  }
}