Buggy python submission (verdict: Runtime Error):
line_b = list(map(int, input().split(' ')))
line=[]
num=[]
for i in range(line_b[0]):
  num+=[0]
for i in range(line_b[1]):
  line+=[list(map(int, input().split(' ')))]
for i in range(line_b[1]):
  if num[line[i][0]-1]==0:
    num[line[i][0]-1]=line[i][1]
  elif num[line[i][0]-1]!=line[i][1]:
    num[0]=0
    break
for i in range(line_b[1]):
  for j in range(line_b[1]):
    if line[i][0]==line[j][0] and line[i][1]!=line[j][1]:
      num[0]=0
if num[0]==0:
  print(-1)
else:
  number=0
  for i in range(line_b[0]):
    number+=num[i]*10**(line_b[0]-1-i)
  print("%d" %number)

Fixed submission:
N=int(input())
def page(N):
  if N%2==1:
    N=N+1
  N=N//2
  print(N)
page(N)

Buggy python submission (verdict: Runtime Error):
line_b = list(map(int, input().split(' ')))
line=[]
num=[]
for i in range(line_b[0]):
  num+=[0]
for i in range(line_b[1]):
  line+=[list(map(int, input().split(' ')))]
for i in range(line_b[1]):
  if num[line[i][0]-1]==0:
    num[line[i][0]-1]=line[i][1]
  elif num[line[i][0]-1]!=line[i][1]:
    num[0]=0
    break
for i in range(line_b[1]):
  for j in range(line_b[1]):
    if line[i][0]==line[j][0] and line[i][1]!=line[j][1]:
      num[0]=0
if num[0]==0 or num[0]<0 or num[1]<0 or num[2]<0 or num[0]>9 or num[1]>9 or num[2]>9:
  print(-1)
else:
  print("%d%d%d" %(num[0],num[1],num[2]))

Fixed submission:
N=int(input())
def page(N):
  if N%2==1:
    N=N+1
  N=N//2
  print(N)
page(N)

Buggy python submission (verdict: Runtime Error):
line_b = list(map(int, input().split(' ')))
line=[]
num=[]
for i in range(line_b[0]):
  num+=[0]
for i in range(line_b[1]):
  line+=[list(map(int, input().split(' ')))]
for i in range(line_b[1]):
  if num[line[i][0]-1]==0:
    num[line[i][0]-1]=line[i][1]
  elif num[line[i][0]-1]!=0 and num[line[i][0]-1]!=line[i][1]:
    num[0]=0
    i=line_b[1]
if num[0]==0 or num[0]<0 or num[1]<0 or num[2]<0:
  print(-1)
else:
  print("%d%d%d" %(num[0],num[1],num[2]))

Fixed submission:
N=int(input())
def page(N):
  if N%2==1:
    N=N+1
  N=N//2
  print(N)
page(N)

Buggy python submission (verdict: Runtime Error):
a = input()
res = a//2
if a%2 >0:
  res += 1
print(res)

Fixed submission:
a = int(input())
res = a // 2
if a % 2 > 0:
  res += 1
  
print(res)

Buggy python submission (verdict: Runtime Error):
a = input()
res = a // 2
if a % 2 > 0:
  res += 1
print(res)

Fixed submission:
a = int(input())
res = a // 2
if a % 2 > 0:
  res += 1
  
print(res)

Buggy python submission (verdict: Runtime Error):
N = int(input())
if N % 2 ==0:
  print(N/2)
 
else:
  ptint(1+N/2)

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

Buggy python submission (verdict: Runtime Error):
N = int(input())
if N % 2 ==0:
  print(N/2)

else:
  ptint(1+N/2)

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

Buggy python submission (verdict: Runtime Error):
N = input()
print(int((N + (N % 2))/2))

Fixed submission:
N = int(input())
num = N + (N % 2)
print(int(num/2))

Buggy python submission (verdict: Runtime Error):
N = int(raw_input())
print( N / 2 + (N % 2))

Fixed submission:
N = int(input())
num = N + (N % 2)
print(int(num/2))

Buggy python submission (verdict: Runtime Error):
N / 2 + (N % 2)

Fixed submission:
N = int(input())
num = N + (N % 2)
print(int(num/2))