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:
N = int(input())

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

Submission status: Accepted

Solution code:
n = int(input())

import math
papers = math.ceil(n / 2)

print(papers)

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 == 0:
    s = int(n/2)
else:
    s = n // 2 + 1

print(s)

Submission status: Accepted

Solution code:

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

if __name__ == '__main__':
    main()

Submission status: Accepted

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

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

print(int(n))

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:
import math
n = int(input())

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

Submission status: Accepted

Solution code:
import math
N=input()
N=int(N)
NN=N+1
print(math.floor(NN/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())
answer=N/2
if N%2==1:
  answer=N//2+1

  
print(int(answer))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N= int(input().split()[0])

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

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

Solution code:
import math

n = int(input())


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

Submission status: Accepted

Solution code:
import bisect, collections

def solution():
    n = input().strip()
    print((int(n)+1)//2)
    

    

def main():    
    # T = int(input().strip())
    for _ in range(1):
        solution()
    

main()

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:
import sys

def main():
    tmp = input().replace('\n','').split(' ')[0]
    res = int(tmp)//2 + int(tmp)%2
    print(res)
if __name__ == '__main__':
    input = sys.stdin.readline
    main()

Submission status: Accepted

Solution code:
import math

n = int(input())

print(math.ceil(n/2))

Submission status: Accepted

Solution code:
# coding: utf-8
# submission # - User: herp_sy
# https://atcoder.jp/contests/
#
# lang: Python3 (3.4.3)

import math
import statistics
import numpy as np
import queue
import itertools
import functools 

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
print(-1*(-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:
def resolve():
    N = int(input())
    print((N + 1) // 2)


if __name__ == "__main__":
    resolve()

Submission status: Accepted

Solution code:
class Solution:
    def solve(self, N: int) -> str:

        return N // 2 + N % 2


if __name__ == '__main__':

    # standard input
    N = int(input())

    # solve
    solution = Solution()
    print(solution.solve(N))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = int(input())

print(a//2+a%2)

Submission status: Accepted

Solution code:
import numpy as np

N=int(input())

print(int(np.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())
import math
print(math.ceil(n/2))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
if n % 2 == 0:
    print(n//2)
else:
    print((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())
print(str((n+1) // 2))

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
N = int(input())

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

Submission status: Accepted

Solution code:
import math

page = int(input())
output = math.ceil(page / 2)
print(output)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    import sys
    input = sys.stdin.readline
    N = int(input())
    if N % 2 == 1:
        print(N//2+1)
    else:
        print(int(N/2))

if __name__ == "__main__":
    main()

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:
    ans = n//2 + 1
else:
    ans = n//2
print(ans)

Submission status: Accepted

Solution code:
#A - Duplex Printing
N = int(input())
if N%2 == 0:
    print(int(N/2))
else:
    print(int(N/2)+1)

Submission status: Accepted

Solution code:
from decimal import *
N = int(input())

print(Decimal(str(N/2)).quantize(Decimal('0'), rounding=ROUND_HALF_UP))

Submission status: Accepted

Solution code:
import math

N = int(input())

a = math.ceil(N / 2)

print(a)

Submission status: Accepted

Solution code:
N = int(input()) # 数字を変数に格納

import math

print(math.ceil(N/2))

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 == 0:
  print(N//2)
else:
  print(N//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:
import math
N = int(input())


print(math.ceil(N / 2))

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:
#import re
import sys
input = sys.stdin.readline
#import heapq
#import bisect
#from collections import deque
#import math

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


    
if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
import math

X = int(input())
Y = X/2
print(math.ceil(Y))

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())
a,b=divmod(N,2)
print(a+b)

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 == 0:
    print(int(N/2))
else:
    print(int(N//2)+1)

Submission status: Accepted

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

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

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
from math import ceil

n = int(input())


print(ceil(n/2))

Submission status: Accepted

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


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


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
n = int(input())
if n == 1:
    print(1)
elif n % 2 == 0:
    print(n // 2)
else:
    print(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:
# -*- coding: utf-8 -*-
a = int(input())

print(int(a/2+0.5))

Submission status: Accepted

Solution code:
n = int(input())
print(sum(divmod(n, 2)))

Submission status: Accepted

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

Submission status: Accepted

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

# 切り上げ
B=math.ceil(N/2)
print(B)

Submission status: Accepted

Solution code:
import math
import string


def readints():
    return list(map(int, input().split()))


def nCr(n, r):
    return math.factorial(n)//math.factorial(n-r)*math.factorial(r)


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

Submission status: Accepted

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

print(m.ceil(n/2))

Submission status: Accepted

Solution code:
n = int(input())

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

Submission status: Accepted

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

print(a)

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())
ans = 0
if n%2 == 0:
   ans = n/2
else:
   ans = (n+1)/2

print(int(ans))

Submission status: Accepted

Solution code:
N=int(input())

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

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

Solution code:
N = int(input())

if (N % 2 == 0):
  print(N // 2)
else:
  print((N - 1) // 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())

ans = N // 2
if N % 2 != 0:
    ans += 1

print(ans)

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:
n = input()

N=int(n)

if N % 2 == 0:
  ans = 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/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:
a  = int(input())
b = a//2
c = a%2
print(b+c)

Submission status: Accepted

Solution code:
import math

N = int(input())

print(math.ceil(N/2.0))

Submission status: Accepted

Solution code:
from math import ceil

# print('input >>')
N = int(input())

# print('-----output-----')
print(ceil(N/2))

Submission status: Accepted

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


def solve(inp):
    N = int(inp.readline().strip())

    a = int((N - 1) / 2) + 1
    return str(a)


def main():
    import sys
    result = solve(sys.stdin)
    if result is not None and result != '':
        print(result)


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
import math

#n
n= int(input())

print(math.ceil(n/2))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import numpy as np
print(int(np.ceil(int(input())/2)))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N= int(input())

count = 0

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

if __name__ == '__main__':
    resolve()

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:
  ans=N/2
else:
  ans=N//2+1
print(int(ans))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

q, mod = divmod(n, 2)

if (mod == 0):
  print(q)
else:
  print(q+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 numpy as np
N= int(input())
if int(N)%2==1:
    print(N//2+1)
else:
    print(N//2)

Submission status: Accepted

Solution code:
pages = int(input())

if pages % 2 == 1:
    print(pages//2 + 1)
else:
    print(pages//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 == 0:
    print(int(N/2))
else:
    print(int(N//2) + 1)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
a = int(input())

from math import ceil
print(ceil(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:
n=int(input())
if n%2==0:
    a=n//2
else:
    a=n//2+1
print(a)

Submission status: Accepted

Solution code:
import math

if __name__ == '__main__':
    n = int(input())
    result = math.ceil(n / 2)
    print(result)

Submission status: Accepted

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

# output
print(N//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())

print(math.ceil(n / 2))

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys
input = sys.stdin.readline

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

Submission status: Accepted

Solution code:
n = int(input())

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

Submission status: Accepted

Solution code:
N = int(input())
if(N%2==0):
    print(int(N/2.0))
else:
    print(int(N/2.0+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:
x = int(input())
div, mod = divmod(x, 2)
if mod:
  div += 1
print(div)

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(N//2)
  
else:
  print(N//2+1)

Submission status: Accepted

Solution code:
N = int(input())


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

Submission status: Accepted

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

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:
def main():
    n = int(input())
    result = 0
    while True:
        if n > 0:
            n = n - 2
            result += 1
        else:
            break
    print(result)


if __name__ == "__main__":
    main()

Submission status: Accepted

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

if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

q, mod = divmod(n, 2)
ans = q
if mod != 0:
    ans += 1
print(ans)

Submission status: Accepted

Solution code:
# abc 157
import sys
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
read = sys.stdin.buffer.read
sys.setrecursionlimit(10 ** 7)

N = int(readline().strip())

if (N % 2) == 0:
    answer = int(N / 2)
else:
    answer = int((N + 1)/ 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 = int(input())

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

Submission status: Accepted

Solution code:
N = int(input())

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

Submission status: Accepted

Solution code:
n = int(input())

paper = n // 2
if n%2!=0:
    paper += 1

print(paper)

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:
import math

n = int(input())

p = math.ceil(n / 2)

print(p)

Submission status: Accepted

Solution code:
n = int(input())

a = n % 2
b = n // 2
print(a+b)

Submission status: Accepted

Solution code:
# ANSHUL GAUTAM
# IIIT-D

from math import *
from copy import *
from string import *				# alpha = ascii_lowercase
from random import *				# l.sort(key=lambda l1:l1[0]-l1[1]) => ex: sort on the basis difference
from sys import stdin
from sys import maxsize
from operator import *				# d = sorted(d.items(), key=itemgetter(1))
from itertools import *
from collections import Counter		# d = dict(Counter(l))
from collections import defaultdict # d = defaultdict(list)

'''

'''

def solve(l):
	n = len(l)
	

N = int(stdin.readline())
print(ceil(N/2))

Submission status: Accepted

Solution code:
def main():
    n = int(input().strip())
    print((n + 1) // 2)


main()

Submission status: Accepted

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

    return 0

print(solve())

Submission status: Accepted

Solution code:
import sys
import math
import fractions
import itertools
from collections import deque
import copy
import bisect

MOD = 10 ** 9 + 7
INF = 10 ** 18 + 7
input = lambda: sys.stdin.readline().strip()

N = int(input())
print(int((N+1)//2))

Submission status: Accepted

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

    return 0
if __name__ == '__main__':
    main()

Submission status: Accepted

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


def solve(N: int):
    return print(math.ceil(N/2))


# Generated by 1.1.6 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    N = int(next(tokens))  # type: int
    solve(N)

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

ans , mod = divmod(N,2)
if mod == 0:
    print(ans)
elif mod == 1:
    print(ans+1)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

def main(N):
    if N % 2 == 0:
        return N // 2
    else:
        return N // 2 + 1

if __name__ == "__main__":

    answer = main(N)
    print(answer)

Submission status: Accepted

Solution code:
import math
print(math.ceil((int(input())/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:
s = list(map(int, input().split()))
if s[0]%2==1:
    print(int(s[0]/2)+1)
else:
    print(int(s[0]/2))

Submission status: Accepted

Solution code:
import math

if __name__ == '__main__':
    n = int(input())

    print(math.ceil(n/2))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
print(abs((-int(input())//2)))

Submission status: Accepted

Solution code:
N = int(input())
print(N//2) if N % 2 ==0 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())
if n ==0:
    print(0)
elif 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(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:
N = int(input())
if N % 2 ==0:
  print(N//2)
else:
  print((N//2) + 1)

Submission status: Accepted

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

# c = list(map(int, input().split()))
# s = [list(map(int, list(input()))) for i in range(10)]
# n, r  = map(int, input().split())

print(math.ceil(n / 2))

Submission status: Accepted

Solution code:
import math

n=int(input())
r=math.ceil(n/2)

print(r)

Submission status: Accepted

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

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:
import math

def main():
    n = int(input())
    ans = math.ceil(n / 2)
    print(int(ans))


if __name__ == '__main__':
    main()

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().rstrip())
if N % 2 == 0:
    print(int(N/2))
else:
    print(int(N//2 + 1))

Submission status: Accepted

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


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
ii = lambda : int(input())
mi = lambda : map(int,input().split())
li = lambda : list(map(int,input().split()))

n = ii()

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

Submission status: Accepted

Solution code:
from math import ceil
def main():
    n = int(input())
    r = ceil(n / 2)
    print(r)

main()

Submission status: Accepted

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

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:
import math

N = int(input())
ans = math.ceil(N / 2)
print(ans)

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
N = int(input().strip())

print((N + 1) // 2)

Submission status: Accepted

Solution code:
import math
import sys

input = sys.stdin.readline


def main():
    n = int(input())
    print(math.ceil(n / 2))


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
n = int(input())

a = n%2

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

Submission status: Accepted

Solution code:
# coding: utf-8

n = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

kotae = int((N-1)/2) + 1

print(kotae)

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 == 0:
    print(int(n/2))
else:
    print(int(n/2) + 1)

Submission status: Accepted

Solution code:
N=int(input())

ans=(N+1)//2

print(ans)

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:
s = int(input())

sec = (s+1) >> 1
print(sec)

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

Solution code:
N = int(input())

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

Submission status: Accepted

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

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:
import math
def main():
    n = int(input())


    print( math.ceil(n/2))

if __name__ == '__main__' :
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
x = int(input())
if x % 2 == 0:
    print(int(x/2))
else:
    print(int((x+1)/2))

Submission status: Accepted

Solution code:
import numpy as np

N = int(input())

print(int(np.ceil(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:
n = int(input())
print(int(n // 2) if n % 2 == 0 else int(n // 2 + 1))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
input = lambda: sys.stdin.readline().rstrip() 

def resolve():
    N = int(input())
    print((N+1)//2)

if __name__ == '__main__':
    resolve()

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:
#A - Duplex Printing
n = int(input())
ans = n // 2
if(n % 2 == 1):
    ans += 1
print(ans)

Submission status: Accepted

Solution code:
#!python3.4.3

n = int(input())

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

Submission status: Accepted

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

    return

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
import math


def main():
    n = int(input())
    print(math.ceil(n / 2))


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

ans = (n+1)//2

print(ans)

Submission status: Accepted

Solution code:
N=int(input())

r=0

r=N //2
mod=N % 2

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

a = int(input())

print(math.ceil(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:
n = int(input())
print(n//2 if n%2 == 0 else n//2 + 1)

Submission status: Accepted

Solution code:
import numpy as np
import math as m

def main(**kwargs):
    r = int(n / 2 + 0.5)
    return r

if __name__ == "__main__":
    cin = np.array(input().split(" ")).astype("int")
    n, *_ = cin

    cout = main(n=n)
    print(cout)

Submission status: Accepted

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

print(math.ceil(n/2))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
printn = lambda x: print(x,end='')
inn = lambda : int(input())
inl   = lambda: list(map(int, input().split()))
inm   = lambda:      map(int, input().split())
ins = lambda : input().strip()
DBG = True # and False
BIG = 10**18
R = 10**9 + 7

def ddprint(x):
  if DBG:
    print(x)

n = inn()
print((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:
input_line = int(input())

print((input_line+1) // 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:
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:
import sys

line = sys.stdin.readline().strip()
n = int(line)
print(n//2+n%2)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

Solution code:
N=int(input())
ans=(N+1)//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:
a = int(input())

if a % 2 == 0:
    b = a/2

else:
    b = (a+1)/2

print(int(b))

Submission status: Accepted

Solution code:
import math
n=int(input())
a=n/2
print(math.ceil(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==0:
  print(n//2)
else:
  print((n//2)+1)

Submission status: Accepted

Solution code:
n = int(input())

print("%d"%(-(-n // 2)))

Submission status: Accepted

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

if __name__ == '__main__':
    main()

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:
import math

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# ABC157 A

n = int(input())

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

Submission status: Accepted

Solution code:
N = int(input())
a, b = divmod(N, 2)
print(a+b)

Submission status: Accepted

Solution code:
N = int( input() )

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