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



Sample input:
5


Sample output:
3

Submission status: Accepted

Solution code:
inputnumber = int(input())
numpage = 0
oddnumber = inputnumber % 2
if inputnumber >= 1 and inputnumber <= 100:
  if oddnumber == 0:
    numpage = inputnumber / 2
    print(int(numpage))
  else:
    inputnumber = inputnumber - 1
    numpage = inputnumber / 2
    numpage = numpage + 1
    print(int(numpage))
else:
  print()

Submission status: Accepted

Solution code:
n = int(input())
print(int((n + 1) / 2))

Submission status: Accepted

Solution code:
S = int(input())
A = 0
if S % 2 == 1:
    A = S // 2 + 1
else:
    A = S // 2
print(A)

Submission status: Accepted

Solution code:
a = int(input())
if a%2 == 0:
    b = a/2
else:
    b=(a+1)/2
print(int(b))

Submission status: Accepted

Solution code:
n = int(input())
print(int(n % 2 + n / 2))

Submission status: Accepted

Solution code:
n = int(input())
print(-((-n)//2))

Submission status: Accepted

Solution code:
a = int(input())
if a%2 == 0:
  print("{:.0f}".format(a/2))
else:
  print("{:.0f}".format(a//2 +1))

Submission status: Accepted

Solution code:
N = int(input())

if N % 2 == 0:
    print(int(N/2))
else:
    print(int((N+1)/2))

Submission status: Accepted

Solution code:
n = int(input())
if (n % 2 == 1):
    print("%s" % ((n // 2) + 1))
else:
    print(n // 2)

Submission status: Accepted

Solution code:
import math
 
N = int(input())
print(math.ceil(N/2))

Submission status: Accepted

Solution code:
N = int(input())
ans = N // 2 + N % 2
print(ans)

Submission status: Accepted

Solution code:
line = input('')
n = int(line.split(' ')[0])
if n%2 == 0:
  print( int(n/2))
else:
  print( int(n/2)+1)

Submission status: Accepted

Solution code:
# coding: utf-8
import math
N = int(input())
ans = math.ceil(N / 2)
print(ans)

Submission status: Accepted

Solution code:
from sys import stdin

def main():
    input = stdin.readline

    N = float(input())

    if(N%2 == 0):
        print(int(N/2))
    else:
        print(int(N/2+1))


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
N=int(input())
 
if N == 1:
  print(1)
elif N == 2:
  print(1)
else:
  if N % 2 == 1:
    print (int(N / 2) + 1)
  else:
    print (int(N / 2))

Submission status: Accepted

Solution code:
from math import ceil

N = int(input())
print(ceil(N/2))

Submission status: Accepted

Solution code:
a = int(input())
if a%2==0:
  print(int(a/2))
else:
  print(int((a+1)/2))

Submission status: Accepted

Solution code:

def main():
    n = int(input())
    print((n+1)//2)


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
x = input()
int(x)
y = int(x) // 2
if int(x) % 2 != 0:
    y = y + 1

print(y)

Submission status: Accepted

Solution code:
import math

if __name__ == "__main__":
    N = int(input())
    ret = math .floor(N / 2)
    if N % 2 == 1:
       ret = ret + 1
    print(ret)

Submission status: Accepted

Solution code:
n = input()
n = int(n)
if n % 2 != 0:
  print(int(n/2)+1)
else:
  print(int(n/2))

Submission status: Accepted

Solution code:

def a(n):

    return -(-n // 2)

def main():
    n = int(input())
    print(a(n))

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
N = input()
ans = int(N)//2

if int(N)%2 == 1:
  ans += 1 
  
print(ans)

Submission status: Accepted

Solution code:
a=int(input())
if a%2==0:
  b=a//2
else:
  b=a//2+1
print(b)

Submission status: Accepted

Solution code:
N = int(input())

if N % 2 == 0:
    print("{}".format(int(N / 2)))
else:
    print("{}".format(int((N + 1) / 2)))

Submission status: Accepted

Solution code:
import math

n = int(input())
a = math.ceil(n/2)
print(a)

Submission status: Accepted

Solution code:
N = 0
N = int(input())
if N%2 == 0:
    print(N//2)
else:
    print(N//2+1)

Submission status: Accepted

Solution code:
n = int(input())

if n % 2 == 0:
  a = n // 2
  
else:
  a = n // 2 + 1
  
print(a)

Submission status: Accepted

Solution code:
s =int(input())

print(s//2+s%2)

Submission status: Accepted

Solution code:

N = int(input())

if N % 2 == 0:
    print(int(N/2))

else:
    print(int(N/2) + 1)

Submission status: Accepted

Solution code:
a=int(input())
if a%2==1:
	print(int((a-1)/2)+1)
else:
	print(int(a/2))

Submission status: Accepted

Solution code:
N = int(input())

if N % 2 == 0:
    print(N//2)
else:
    print(N //2 + 1)

Submission status: Accepted

Solution code:
s = int(input())
print(int(s/2) if s%2 == 0 else int(s/2)+1)

Submission status: Accepted

Solution code:
N = int(input())
ans = 0
if N % 2 == 1:
    N += 1
    ans = int(N / 2)
else:
    ans = int(N / 2)
print(ans)

Submission status: Accepted

Solution code:
n = int(input())

if n%2 == 0:
    print(int(n/2))

else:
    n =int(n/2)
    n += 1
    print(n)

Submission status: Accepted

Solution code:
N= int(input())
answer=N//2+ N%2
print(answer)

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline
print(-(-int(input()) // 2))

Submission status: Accepted

Solution code:
N = int(input())
#print('N=', N)

i = N // 2
#print('i=', i)
j = N % 2
#print('j=', j)

if j == 1:
  print(i+1)
if j == 0:
  print(i)

Submission status: Accepted

Solution code:
N=int(input())

roundnum=-(-N//2)
print(roundnum)

Submission status: Accepted

Solution code:
import sys
import numpy as np

# input = sys.stdin.readline

n = int(input())

print(int((n+1)/2))

Submission status: Accepted

Solution code:
N = int(input())

if N % 2 == 0:
  res = N/2
else:
  res = N//2 + 1

print(int(res))

Submission status: Accepted

Solution code:
N = int(input())
 
if N % 2 == 0:
  print(int(N / 2))
else:
  print(int((N + 1) / 2))

Submission status: Accepted

Solution code:
n = int(input())

if n % 2 ==0:
    print(int(n/2))
else:
    print(int((n+1)/2))

Submission status: Accepted

Solution code:
n = int(input())

print(n // 2 if n % 2 == 0 else n // 2 + 1)

Submission status: Accepted

Solution code:
N = int(input())

if(N%2 == 0):
    ans = N//2
else:
    ans = N//2
    ans += 1

print(ans)

Submission status: Accepted

Solution code:
N = int(input())
if (N % 2) == 0:
  print(int(N/2))
else:
  print(int(N//2+1))

Submission status: Accepted

Solution code:
N = int(input())
if N%2==0: print(int(N/2))
else: print(int(N/2)+1)

Submission status: Accepted

Solution code:
import sys
sys.setrecursionlimit(10**6)
from math import floor,ceil,sqrt,factorial,log
from heapq import heappop, heappush, heappushpop
from collections import Counter,defaultdict,deque
from itertools import accumulate,permutations,combinations,product,combinations_with_replacement
from bisect import bisect_left,bisect_right
from copy import deepcopy
from operator import itemgetter
from fractions import gcd

mod = 10 ** 9 + 7
inf = float('inf')
ninf = -float('inf')
 
#整数input
def ii(): return int(sys.stdin.readline().rstrip()) #int(input())
def mii(): return map(int,sys.stdin.readline().rstrip().split())
def limii(): return list(mii()) #list(map(int,input().split()))
def lin(n:int): return [ii() for _ in range(n)]
def llint(n: int): return [limii() for _ in range(n)]
#文字列input
def ss(): return sys.stdin.readline().rstrip() #input()
def mss(): return sys.stdin.readline().rstrip().split()
def limss(): return list(mss()) #list(input().split())
def lst(n:int): return [ss() for _ in range(n)]
def llstr(n: int): return [limss() for _ in range(n)]

#本当に貪欲法か？ DP法では？？
#本当に貪欲法か？ DP法では？？
#本当に貪欲法か？ DP法では？？
n=ii()
if n%2==0:
    print(n//2)
else:
    print((n+1)//2)

Submission status: Accepted

Solution code:
N=int(input())
ans=0
if N%2==0:
  ans=N/2
else:
  ans=N/2+1
print(int(ans))

Submission status: Accepted

Solution code:
num = int(input())
if num%2 == 0:
    print(int(num/2))
else:
    print(int(num/2 + 1))

Submission status: Accepted

Solution code:
import sys

sys.setrecursionlimit(10 ** 6)
int1 = lambda x: int(x) - 1
p2D = lambda x: print(*x, sep="\n")
def II(): return int(sys.stdin.readline())
def MI(): return map(int, sys.stdin.readline().split())
def LI(): return list(map(int, sys.stdin.readline().split()))
def LLI(rows_number): return [LI() for _ in range(rows_number)]
def SI(): return sys.stdin.readline()[:-1]

def main():
    n=II()
    print((n+1)//2)

main()

Submission status: Accepted

Solution code:
N = int(input())
print((N//2) + N % 2)

Submission status: Accepted

Solution code:
n = int(input())

if n % 2 > 0 :
  print(n // 2 + 1)
else:
  print(n // 2)

Submission status: Accepted

Solution code:
n = int(input())
ans = (n // 2) + (n % 2)
print(ans)

Submission status: Accepted

Solution code:
N = int(input())

print((N+1)>>1)

Submission status: Accepted

Solution code:
def I(): return int(input())
def MI(): return map(int, input().split())
def LMI(): return list(map(int, input().split()))


N = I()

print((N + 1) // 2)

Submission status: Accepted

Solution code:
n = int(input().strip())

print( -(-n//2) )

Submission status: Accepted

Solution code:
n = int(input())
if n % 2 == 0:
    print(int(n/2))
else:
    print(int(n//2 +1))

Submission status: Accepted

Solution code:
n = int(input())

print(int(n/2) if n%2 == 0 else int((n/2)+1))

Submission status: Accepted

Solution code:
import math

n = int(input())

a = math.ceil(n / 2)

print(a)

Submission status: Accepted

Solution code:
import numpy as np
n = int(input())

print(int(np.ceil(n/2)))

Submission status: Accepted

Solution code:
a = int(input())
if a%2 == 1:
  print(int(a/2)+1)
else:
  print(int(a/2))

Submission status: Accepted

Solution code:
import math
N = int(input())

ans = math.ceil(N / 2)

print(ans)

Submission status: Accepted

Solution code:
a = input()
n, mod = divmod(int(a), 2)
print(n if mod == 0 else n + 1)

Submission status: Accepted

Solution code:
a=int(input())
ans=0
if a % 2 ==1:
  ans=round((a+1)/2)
else:
  ans=round(a/2)
print(ans)

Submission status: Accepted

Solution code:
N = int(input())
if N%2 != 0:
    print(N//2+1)
else:
    print(N//2)

Submission status: Accepted

Solution code:
n = int(input())
ans = n//2 if n % 2 == 0 else n//2+1
print(ans)

Submission status: Accepted

Solution code:
# 1行目の入力を数値として扱う
N = int(input())

# あまり
m = N % 2

P = int(N / 2)

if m == 1:
    P += 1

# 答えの出力
print(P)

Submission status: Accepted

Solution code:
a = int(input())
print(-(-a // 2))

Submission status: Accepted

Solution code:
stdin = open(0)
K = (int)(stdin.readline())
if int(K % 2) == 1:
  print(int(K/2)+1)
else:
  print(int(K/2))

Submission status: Accepted

Solution code:
n = int(input())
answer = n//2
answer += n % 2
print(answer)

Submission status: Accepted

Solution code:
n = int(input())
if n % 2 == 0:
    print(n//2)
else:
    print(n//2 + 1)

Submission status: Accepted

Solution code:
n = input()
isPrime = int(n)%2
tmp = int(n)//2

if isPrime == 0:
    print(tmp)
else:
    print(tmp+1)

Submission status: Accepted

Solution code:
N = int(input())

if N % 2 == 0 :
  print(int(N/2))
else :
  print(int(N/2) + 1)

Submission status: Accepted

Solution code:
n = int(input())
print(int(n / 2) + (1 if n / 2 > int(n / 2) else 0))

Submission status: Accepted

Solution code:
def resolve():
    N = int(input())

    if N % 2 == 0:
        print(N // 2)
        return

    ans = N // 2
    print(ans + 1)


resolve()

Submission status: Accepted

Solution code:
N = input()
N = int(N)

x = N // 2
y = N % 2

if y == 0:
    print(x)
else:
    print(x + 1)

Submission status: Accepted

Solution code:
n=int(input())
if n%2!=0:
    print((n//2)+(n%2))
elif n%2==0:
    print(n//2)

Submission status: Accepted

Solution code:
N = int(input())
print(int((N-N%2)/2+ N%2))

Submission status: Accepted

Solution code:
a=int(input())
if a % 2 == 0:
  print(a // 2)
else:
  print((a // 2) + 1)

Submission status: Accepted

Solution code:
import math
n = int(input())
 
if n%2 == 0:
  print(n//2)
else:
  print(math.ceil(n/2))

Submission status: Accepted

Solution code:
# coding:utf-8

import sys
import math
import time
#import numpy as np
import collections
from collections import deque
import queue
import copy
import bisect


def dfs(s, prev, pre):
  val[s] += Ope[s] + prev
  for i in G[s]:
    if(i == pre):
      continue
    dfs(i, val[s], s)

#X = str(input()).split()
#a = [int(x) for x in input().split()]
#sys.setrecursionlimit(10**7)
#N, Q = map(int, input().split())
N = int(input())

if(N%2==0):
  print(int(N/2))
else:
  print(int(math.floor(N/2)+1))

Submission status: Accepted

Solution code:
N = int(input())

print(int((N / 2) + (N % 2)))

Submission status: Accepted

Solution code:
N = int(input())
print( N//2 + N%2)

Submission status: Accepted

Solution code:
import math
def main():
    N = int(input())
    a = math.ceil(N/2.0)
    print(a)

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
i= int(input())
i= int((i+1)/2)
print(i)

Submission status: Accepted

Solution code:
import math
N = int(input ())
print(math.ceil(N/2))

Submission status: Accepted

Solution code:
import numpy as np

N = int(input())
if N%2==0:
  a = int(N / 2)
else:
  a = int(np.floor(N / 2) + 1)

print(a)

Submission status: Accepted

Solution code:
N = int(input())

if N % 2 == 0:
    print(N//2)
else:
    print(N//2 + 1)

Submission status: Accepted

Solution code:
n = int(input())
 
if n % 2 == 1:
  print(int((n+1)/2))
else:
  print(int(n/2))

Submission status: Accepted

Solution code:
N = int(input())
if N % 2 == 0:
    print(int(N / 2))
else:
    print(int(N / 2)+ 1)

Submission status: Accepted

Solution code:
import math
N = int(input())
if( N%2 == 0 ):
  print(int(N/2))
else:
  print(math.ceil((N/2)))

Submission status: Accepted

Solution code:
N = int(input())
if N % 2 == 0:
  print(int(N/2))

else:
  print(int((N+1)/2))

Submission status: Accepted

Solution code:
#coding utf-8
import math
n = int(input())
print(math.ceil(n / 2))

Submission status: Accepted

Solution code:
N = int(input())

if N % 2 == 1:
	print(N // 2 + 1)
else:
	print(N // 2)

Submission status: Accepted

Solution code:
i = int(input())
print( i//2 + i % 2)

Submission status: Accepted

Solution code:
n = int(input())

if n % 2 == 0:
  print(int(n/2))
else:
  print(int(n//2 + 1))

Submission status: Accepted

Solution code:
N = int(input())
if N % 2 == 0:
    print(int(N / 2))
else:
    print(int(N / 2) + 1)

Submission status: Accepted

Solution code:
n = int(input())

q, mod = divmod(n, 2)

print(q + mod)

Submission status: Accepted

Solution code:
N = int(input())
p = int(N / 2)

if N % 2 == 1:
    p = p + 1

print(p)

Submission status: Accepted

Solution code:

N = int(input())

ans = int(N/2) + N%2

print(ans)

Submission status: Accepted

Solution code:
n = int(input())
if n%2 == 0:
    print(n//2)
else :
    print(n//2+1)

Submission status: Accepted

Solution code:
N = int(input())
d, m = divmod(N, 2)
print(d if m == 0 else d + 1)

Submission status: Accepted

Solution code:
page = int(input())

paper = page // 2
a = page % 2
if a != 0:
  paper += 1

print(paper)

Submission status: Accepted

Solution code:
n=int(input())

if n % 2 == 0:
    print(int(n/2))
else:
    print(int((n-1)/2+1))

Submission status: Accepted

Solution code:
n = int(input())
if n%2 == 0:
	print (n//2)
if n%2 == 1:
  	print ((n+1)//2)

Submission status: Accepted

Solution code:
N = int(input())
N = int(N / 2 + N % 2)
print(N)

Submission status: Accepted

Solution code:
N = int(input())

if N%2 == 0:
	print(int(N/2))
else:
	print(int(N/2) + 1)

Submission status: Accepted

Solution code:
N = int(input())
Answer = (N+1) // 2
print(Answer)

Submission status: Accepted

Solution code:
N = int(input())
K = N % 2
S = (N + K) / 2 
I = round(S)
print(I)

Submission status: Accepted

Solution code:
import math 


print(math.ceil(int(input())/2))

Submission status: Accepted

Solution code:
a = int(input())
if a % 2 == 0:
    print(a//2)
else:
    print(a//2 + 1)

Submission status: Accepted

Solution code:
N = int(input())

if N%2 == 1:
    print(int((N//2)+1))
else:
    print(int(N/2))

Submission status: Accepted

Solution code:
N = int(input())
print (int(N//2) + int(N%2))

Submission status: Accepted

Solution code:
n = int(input())
print(-((-n) // 2))

Submission status: Accepted

Solution code:
n = int(input())

if n % 2 == 1:
    print(n//2+1)
else:
    print(n//2)

Submission status: Accepted

Solution code:
N = int(input())

if N % 2 == 0:
    print(int(N/2))
else:
    ans = N // 2 + 1
    print(ans)

Submission status: Accepted

Solution code:
n=int(input())

if n%2==0:
  print(int(n/2))
else:
  print(int((n+1)/2))

Submission status: Accepted

Solution code:
n = int(input())
if n % 2 ==1:
  print(n//2+1)
else:
  print(n//2)

Submission status: Accepted

Solution code:
n = int(input())
ans = 0
a = 0
for i in range(1, n+1):
    if ans % 2 == 0:
        a += 1
    ans += 1

print(a)

Submission status: Accepted

Solution code:
def main():
    N =int(input())
    if N%2==0:
        print(int(N/2))
        return
    else:
        print(int((N+1)/2))
        return
main()

Submission status: Accepted

Solution code:
N = int(input())

if N%2==1:
    ans=N/2+1
else:
    ans=N/2
print(int(ans))

Submission status: Accepted

Solution code:
N = int(input())

print(N//2+N%2)

Submission status: Accepted

Solution code:
N=int(input())
print(round((N+0.5)/2))

Submission status: Accepted

Solution code:
import math
N = int(input())

ans = math.ceil(N/2)

print(ans)

Submission status: Accepted

Solution code:
import math

N = int(input())
ans = N /2

print(math.ceil(ans))

Submission status: Accepted

Solution code:
page = int(input())
num = (page / 2) + (page % 2)
print(int(num))

Submission status: Accepted

Solution code:
n = int(input())

if n % 2 == 0:
    ans = n / 2
else:
    ans = n // 2 + 1

print(int(ans))

Submission status: Accepted

Solution code:
import os

def main():
    n = int(input())
    syo = n / 2
    amari = n % 2
    print(int(syo + amari))

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
N = int(input())

if not N % 2 == 0:
    k = (N / 2) + 1
    print(int(k))
else:
    k = N / 2
    print(int(k))

Submission status: Accepted

Solution code:
n = int(input())
ans = print(int((n+1)/2))

Submission status: Accepted

Solution code:
N = int(input())

if N%2==0:
	print(N//2)
else:
	print(N//2+1)

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import math
print(int(math.ceil(int(input())/2)))

Submission status: Accepted

Solution code:
N = int(input())

if N % 2 == 0:
    print(N//2)
else:print(N//2 +1)

Submission status: Accepted

Solution code:
N = int(input())
if N % 2 == 1:
	print(N // 2 + 1)
else:
	print(N // 2)

Submission status: Accepted

Solution code:
from sys import stdin

n = int(stdin.readline().rstrip())

print(-(-n // 2))

Submission status: Accepted

Solution code:
#設定
import sys
input = sys.stdin.buffer.readline

#ライブラリインポート
from collections import defaultdict

con = 10 ** 9 + 7
#入力受け取り
def getlist():
	return list(map(int, input().split()))

#処理内容
def main():
	N = int(input())
	if N % 2 == 0:
		print(N // 2)
	else:
		print(N // 2 + 1)


if __name__ == '__main__':
	main()

Submission status: Accepted

Solution code:
#N,K=(int(x) for x in input().split())
N=int(input())
#A=list(map(int, input().split()))

if N % 2==0:
    a=N/2
else:
    a=(N+1)/2
print(round(a))

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

n = int(input())

ans = -(-n//2)

print(ans)

Submission status: Accepted

Solution code:
import math as M
n=int(input())
x=M.ceil(n/2)
print(x)

Submission status: Accepted

Solution code:
n =int(input())
if n%2==1:
    print(int((n+1)/2))
elif n%2==0:
    print(int(n/2))

Submission status: Accepted

Solution code:
n = int(input())

if(n%2 == 0):
    print(n//2)
else:
    print(n//2 + 1)

Submission status: Accepted

Solution code:
def main():
    N = int(input())

    q, mod = divmod(N, 2)

    if mod != 0:
      print(q+1)
    else:
      print(q)

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
def main():
  n=int(input())
  print((n+1)//2)
  
if __name__ == "__main__":
  main()

Submission status: Accepted

Solution code:
n=int(input())
if n%2!=0:
  s=(n+1)//2
else:
  s=n//2
print(s)

Submission status: Accepted

Solution code:
N = int(input())

ans = N // 2
if N % 2 == 1:
    ans += 1
print(ans)

Submission status: Accepted

Solution code:
n = int(input())

if n % 2 == 0:
  print(int(n/2))
else:
  print((n//2) +1)

Submission status: Accepted

Solution code:
N = int(input())
if N % 2 == 1:
  ans = int(N / 2) + 1
else:
  ans = int(N / 2)
  
print(ans)

Submission status: Accepted

Solution code:
import sys
from io import StringIO
import unittest
import math

def resolve():
    n = int(input().strip())

    n = round(n/2 + 0.1)
    print(int(n))
    return

resolve()

Submission status: Accepted

Solution code:
n = int(input())

if n % 2 == 0:
    print(int(n / 2))
else:
    print(int((n / 2)+1))

Submission status: Accepted

Solution code:
a = int(input())
if a%2 == 0:
  print(int(a/2))
else:
  print(int(a//2 + 1))

Submission status: Accepted

Solution code:
import math
print(math.ceil(int(input())/2.0))

Submission status: Accepted

Solution code:
a = int(input())
ans = 0
if a % 2 == 0:
    ans = a // 2
else:
    ans = (a // 2) + 1

print(ans)

Submission status: Accepted

Solution code:
N = int(input())

if N % 2 == 0:
  print(int(N//2))
else:
  print(int(N + 1)//2)

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys

f = sys.stdin
N = int(f.readline())

if N % 2 == 0:
    print(N//2)
else:
    print(N//2+1)

Submission status: Accepted

Solution code:
n = int(input())

if n % 2 == 0:
  ans = n // 2
else:
  ans = n // 2 + 1
  
print(ans)

Submission status: Accepted

Solution code:
import math
N = int(input())
X=N/2
print(math.ceil(X))

Submission status: Accepted

Solution code:
N = int(input())
min = int(N / 2 + 0.5)
print(min)

Submission status: Accepted

Solution code:
N = int(input())
if N%2==0:
    print("{}".format((N//2)))
else:
    print("{}".format((N//2)+1))

Submission status: Accepted

Solution code:
a = int(input())

if a % 2 == 0:
  print(a//2)
else:
  print(a//2 + 1)

Submission status: Accepted

Solution code:
n = int(input()) 
if n%2 ==0:
  print(n//2)
else :
  print(n//2 +1)

Submission status: Accepted

Solution code:
#abc 157
n=int(input())
ans=int(n/2)
if n%2==1:
    ans+=1
print(ans)

Submission status: Accepted

Solution code:
n = int(input())

ans = n//2 + n%2

print(ans)

Submission status: Accepted

Solution code:
n = int(input())

if n % 2 == 0:
  print(int(n/2))
else:
  print(int((n + 1)/2))

Submission status: Accepted

Solution code:
import math
n = int(input())
if n < 3:
    print(1)
else:
    print(math.ceil(n / 2))

Submission status: Accepted

Solution code:
n = int(input())
print((n - 1) // 2 + 1)

Submission status: Accepted

Solution code:
n = int(input())

print(-(-n // 2))

Submission status: Accepted

Solution code:
n=int(input())
m=-(-n//2)
print(m)

Submission status: Accepted

Solution code:
N = int(input())

print(-1 * (-1 * N // 2))

Submission status: Accepted

Solution code:
N = int(input())

if N % 2 == 0:
  ans = N // 2
else :
  ans = N // 2 + 1
print(ans)

Submission status: Accepted

Solution code:
import math
N = int(input())

print(math.ceil(N / 2))

Submission status: Accepted

Solution code:
N = int(input())

q = N // 2
m = N % 2
print(q + m)

Submission status: Accepted

Solution code:
N = int(input())
rn = int(N / 2)
n = int(rn) if rn * 2 == N else int(rn) + 1
print(n)

Submission status: Accepted

Solution code:
n = input()
n = int(n)
a = n % 2

if a == 1:
  print(int(n/2)+1)
else:
  print(int(n/2))

Submission status: Accepted

Solution code:
n=int(input())
print(n//2 if n%2==0 else (n+1)//2)

Submission status: Accepted

Solution code:
#-*- coding:utf-8 -*-
n = int(input())
m = (n + 1)//2

print(m)

Submission status: Accepted

Solution code:
n = input()
n = int(n)
if n % 2 == 1:
  print(n//2+1)
else:
  print(n//2)

Submission status: Accepted

Solution code:
N = int(input())
print(int(N/2) if N%2 == 0 else N//2+1)

Submission status: Accepted

Solution code:
n = int(input())
res = 0

res += n // 2
if n % 2 == 1:
    res += 1

print(res)

Submission status: Accepted

Solution code:
import math

print(math.ceil(int(input())/int(2)))

Submission status: Accepted

Solution code:
n = int(input())
b = True
cnt = 0
while b:
    if n > 0:
        cnt += 1
        n -= 2
    else:
        b = False

print(cnt)

Submission status: Accepted

Solution code:
a=int(input())
q,mod = divmod(a,2)
if mod == 0:
  print(q)
else:
  print(q + 1)

Submission status: Accepted

Solution code:
N = int(input())
if N % 2 == 0:
    print(N//2)
else:
    print(N//2 + 1)

Submission status: Accepted

Solution code:
m = int(input())

if m%2 != 0:
    print(m//2 + 1)
else:
    print(m//2)

Submission status: Accepted

Solution code:
p = int(input())
n = p // 2
if p % 2 == 1:
    n = n + 1
print(n)

Submission status: Accepted

Solution code:
a = int(input())
if a%2==0:
    ans = int(a/2)
else:
    ans = int(a/2+1)
print(ans)

Submission status: Accepted

Solution code:
n = int(input())

if(n%2 == 0):  
    print(int(n/2))
else:
    print(int(n/2)+1)

Submission status: Accepted

Solution code:
N = int(input())
ans = N//2+N % 2
print(ans)

Submission status: Accepted

Solution code:
n = int(input())
ans = n // 2 

if (n % 2) == 1:
  print(ans+1)
else:
  print(ans)

Submission status: Accepted

Solution code:
print(int((int(input()) + 1) / 2))

Submission status: Accepted

Solution code:
N = int(input())

if N%2 == 0:
  print(int(N/2))
else:
  print(int(N/2)+1)

Submission status: Accepted

Solution code:
n = int(input())

if n % 2 == 1:
  print(n//2 + 1)
else:
  print(n//2)

Submission status: Accepted

Solution code:
num = int(input())

sign = int(num%2)

if sign == 0:
  ans = num//2
elif sign == 1:
  ans = (num+1)//2

print(ans)

Submission status: Accepted

Solution code:
n = int(input())
count = 1
a = 2
while True:
    if n>a:
        a += 2
        count += 1
    else :
        break
print(count)

Submission status: Accepted

Solution code:
a = int(input())

if a % 2 == 0:
    print(a // 2)
else:
    print(a // 2 + 1)

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

from fractions import gcd
import math
from math import ceil,floor
import collections

# n=int(input())
# A,B,C,D=map(int, input().split())
# string = input()
# list = list(map(int, input().split()))


N=int(input())

print(math.ceil(N/2))

Submission status: Accepted

Solution code:
N=int(input())

if N%2 == 0:
    n=int(N/2)
elif N%2 == 1:
    n=(N//2)+1

print(n)

Submission status: Accepted

Solution code:
n = int(input())
if n % 2 == 1:
    a = 1 + (n-1)/2
else:
    a = n/2
print(str(int(a)))

Submission status: Accepted

Solution code:
import math
#S,T = input().split()
N = int(input())

print(math.ceil(N/2))

Submission status: Accepted

Solution code:
import math
N = int(input())
ans = math.ceil(N/2)
print(ans)

Submission status: Accepted

Solution code:
N = int(input())
ans = N//2 if N%2==0 else N//2+1
print(ans)

Submission status: Accepted

Solution code:
n = int(input())

if n % 2:
    print(n // 2 + 1)
else:
    print(n // 2)

Submission status: Accepted

Solution code:
N = int(input())

if N % 2 == 0:
    R = N // 2
else:
    R = N // 2 + 1

print(R)

Submission status: Accepted

Solution code:
N = int(input())

print(int(N/2)+N%2)

Submission status: Accepted

Solution code:
N = int(input())
if N%2 == 1:
	print((N // 2) + 1)
else:
  print(N // 2)

Submission status: Accepted

Solution code:
n = int(input())

if n % 2 == 0:
    print(int(n / 2))
else:
    print(int(n // 2) + 1)

Submission status: Accepted

Solution code:
N = int(input())

if N %2 == 0:
    print(int(N/2))
    
else:
    print(int((N+1)/2))

Submission status: Accepted

Solution code:
N=int(input())
print(-(-N// 2))

Submission status: Accepted

Solution code:
n=int(input())
pages=n//2+n%2
print(pages)

Submission status: Accepted

Solution code:
import math
n=int(input())

print(math.ceil(n / 2))

Submission status: Accepted

Solution code:
k = int(input())
if k % 2 == 0:
  print(k//2)
else:
  print(k//2 + 1)

Submission status: Accepted

Solution code:
N = int(input())

ans = (N // 2) + (N % 2)
       
print(ans)

Submission status: Accepted

Solution code:
pages = int(input())
a = pages // 2
b = 1 if pages % 2 == 1 else 0
print(a + b)

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline

n = int(input())

if n % 2 == 0:
    ans = n/2
else:
    ans = n/2 + 0.5

print(int(ans))

Submission status: Accepted

Solution code:
n = int(input())

d, m = divmod(n, 2)

print(d+m)

Submission status: Accepted

Solution code:
def resolve_a():
    n = int(input())
    if n % 2 == 1:
        ans = int(n/2) + 1
    else:
        ans = int(n / 2)
    print(ans)
resolve_a()

Submission status: Accepted

Solution code:
N = int(input())
if(N%2==1):
  ans = N//2 + 1
else:
  ans = N//2
print(ans)

Submission status: Accepted

Solution code:
n=input()
print(int(int(n)/2+0.5))

Submission status: Accepted

Solution code:
N = int(input())
if N%2 == 1:
  print(N//2+1)
else:
  print(N//2)

Submission status: Accepted

Solution code:
import math
n = int(input())

res = math.ceil(n/2)
print(res)

Submission status: Accepted

Solution code:
n=int(input())
r=0
if n%2==0:
    r=n//2
else:
    r=n//2+1

print(r)

Submission status: Accepted

Solution code:
N=int(input())
if N  % 2 == 0:
  print(N // 2)
else:
  print(N // 2 + 1)

Submission status: Accepted

Solution code:
N = int(input())
print((N//2)+(N%2))

Submission status: Accepted

Solution code:
n = int(input())

d = n % 2

print(n // 2 + d)

Submission status: Accepted

Solution code:
n = int(input())

n1 =(n+1)//2
print(n1)

Submission status: Accepted

Solution code:
N = int(input())

if N%2==0:
    print(int(N/2))
else:
    print(int(N/2 )+ 1)

Submission status: Accepted

Solution code:
N = int(input())

if not N % 2:
  print(int(N / 2))
else:
  print(int(N // 2 + 1))

Submission status: Accepted

Solution code:
n = int(input())
ans = n // 2
if n % 2 != 0:
    ans += 1
print(ans)

Submission status: Accepted

Solution code:
n = int(input())
if n%2 == 0:
    print(int(n/2))
else:
    print(int((n/2) + 1))

Submission status: Accepted

Solution code:
n = int(input())
res = n / 2 if n % 2 == 0 else n // 2 + 1
print(int(res))

Submission status: Accepted

Solution code:
import numpy as np

N = int(input())

if N % 2 == 0:
    print(N // 2)
else:
    print(N // 2 + 1)

Submission status: Accepted

Solution code:
N = int(input())

if N%2==0:
    ans = int(N/2)
else :
    ans = int(N//2+1)

print(ans)

Submission status: Accepted

Solution code:
N = int(input())

if N % 2 == 0:
  print(int(N/2))
else:
  print(int(N//2 +1))

Submission status: Accepted

Solution code:
n=int(input())

if n%2!=0:
    print (int(n//2+1))
else:
    print(n//2)

Submission status: Accepted

Solution code:
N=int(input())
if(N%2==1):
  print(N//2+1)
else:
  print(N//2)

Submission status: Accepted

Solution code:
n =int(input())
print(-(-n // 2))

Submission status: Accepted

Solution code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-

n = int(input())

if n % 2 == 0:
    print(int(n/2))
else:
    print(n//2+1)