Buggy python submission (verdict: Runtime Error):
n = int(input())

x = list(map(int, input().split()))

x.sort()

ans = 0

for i range(n):
  ans = ans + x[i*2]
    
print(ans)

Fixed submission:
N = int(input())

L = list(map(int, input().split()))

L.sort()

ans = 0

for i in range(N):
    ans = ans + L[i*2]
    
print(ans)

Buggy python submission (verdict: Runtime Error):
n = int(input())

x = list(map(int, input().split()))

x.sort()

ans = 0

for i range(n):
  ans = ans + x[i*2]
    
print(ans)

Fixed submission:
N = int(input())

L = list(map(int, input().split()))

L.sort()

ans = 0

for i in range(N):
    ans = ans + L[i*2]
    
print(ans)

Buggy python submission (verdict: Runtime Error):
n = int(input())

x = list(map(int, input().split()))

x.sort()

ans = 0

for i range(n):
  ans = ans + x[i*2]
    
print(ans)


Fixed submission:
N = int(input())

L = list(map(int, input().split()))

L.sort()

ans = 0

for i in range(N):
    ans = ans + L[i*2]
    
print(ans)

Buggy python submission (verdict: Runtime Error):
n= int(input())

x= list(map(int, input().split()))

x.sort()

ans = 0

for i range(n):
  ans = ans + x[i*2]
    
print(ans)


Fixed submission:
N = int(input())

L = list(map(int, input().split()))

L.sort()

ans = 0

for i in range(N):
    ans = ans + L[i*2]
    
print(ans)

Buggy python submission (verdict: Runtime Error):
n=int(input())

x=list(map(int, input().split()))

x.sort()

ans = 0

for i range(n):
  ans = ans + x[i*2]
    
print(ans)


Fixed submission:
N = int(input())

L = list(map(int, input().split()))

L.sort()

ans = 0

for i in range(N):
    ans = ans + L[i*2]
    
print(ans)

Buggy python submission (verdict: Runtime Error):
n=int(input())
x=list(map(int, input().split()))

x.sort()

ans = 0

for i range(n):
  ans = ans + x[i*2]
    
print(ans)


Fixed submission:
N = int(input())

L = list(map(int, input().split()))

L.sort()

ans = 0

for i in range(N):
    ans = ans + L[i*2]
    
print(ans)

Buggy python submission (verdict: Runtime Error):
n=int(input())
x=list(map(int, input().split()))

x.sort()

ans=0

for i range(n):
  ans = ans + x[i*2]
    
print(ans)


Fixed submission:
N = int(input())

L = list(map(int, input().split()))

L.sort()

ans = 0

for i in range(N):
    ans = ans + L[i*2]
    
print(ans)

Buggy python submission (verdict: Runtime Error):
n=int(input())
x=list(map(int, input().split()))

x.sort()

ans=0

for i range(n):
  ans=ans+x[i*2]
    
print(ans)


Fixed submission:
N = int(input())

L = list(map(int, input().split()))

L.sort()

ans = 0

for i in range(N):
    ans = ans + L[i*2]
    
print(ans)

Buggy python submission (verdict: Runtime Error):
n=int(input())
x=list(map(int, input().split()))

x.sort()
ans=0

for i range(n):
  ans=ans+x[i*2]
    
print(ans)


Fixed submission:
N = int(input())

L = list(map(int, input().split()))

L.sort()

ans = 0

for i in range(N):
    ans = ans + L[i*2]
    
print(ans)

Buggy python submission (verdict: Runtime Error):
n=int(input())
x=list(map(int,input().split()))

x.sort()
ans=0

for i range(n):
  ans=ans+x[i*2]
    
print(ans)


Fixed submission:
N = int(input())

L = list(map(int, input().split()))

L.sort()

ans = 0

for i in range(N):
    ans = ans + L[i*2]
    
print(ans)

Buggy python submission (verdict: Runtime Error):
n=int(input())
x=list(map(int,input().split()))

x.sort()
ans=0

for i range(n):
  ans=+x[i*2]
    
print(ans)


Fixed submission:
N = int(input())

L = list(map(int, input().split()))

L.sort()

ans = 0

for i in range(N):
    ans = ans + L[i*2]
    
print(ans)

Buggy python submission (verdict: Runtime Error):
n=int(input())
x=list(map(int,input().split()))

x.sort()
ans=0

for i range(n):
  ans+=x[i*2]
    
print(ans)


Fixed submission:
N = int(input())

L = list(map(int, input().split()))

L.sort()

ans = 0

for i in range(N):
    ans = ans + L[i*2]
    
print(ans)

Buggy python submission (verdict: Runtime Error):
n=int(input())
x=list(map(int,input().split()))

x.sort()
ans=0

for i range(n):
  if i%2==1:
    pass
  else:
    ans+=min(x[i],x[i+1])
    
print(ans)

Fixed submission:
N = int(input())

L = list(map(int, input().split()))

L.sort()

ans = 0

for i in range(N):
    ans = ans + L[i*2]
    
print(ans)

Buggy python submission (verdict: Runtime Error):
n=int(input())
a=[]
cou=0

for i in range(n*2):
  a[i]=int(input())
  
a.sort()
for i*2 in range(n):
  cou+=min(a[i],a[i+1])
  
print(cou)

Fixed submission:
N = int(input())

L = list(map(int, input().split()))

L.sort()

ans = 0

for i in range(N):
    ans = ans + L[i*2]
    
print(ans)