Buggy python submission (verdict: Runtime Error):
input =int(input())
l = []
for x in range(input):
  l.append(int(input()))
  
ans = int(sum(l) -max(l)/2)
print(ans)


Fixed submission:
N = int(input())
p = []
for _ in range(N):
    p.append(int(input()))
 
pmax = max(p)
ans = int(sum(p)-pmax/2)
print(ans)

Buggy python submission (verdict: Runtime Error):
aaa = int(input())
l = []
for x in range(aaa):
  l.append(int(input()))
  
print(int(sum(l) - max(l) + max(l/2)))

Fixed submission:
N = int(input())
p = []
for _ in range(N):
    p.append(int(input()))
 
pmax = max(p)
ans = int(sum(p)-pmax/2)
print(ans)

Buggy python submission (verdict: Runtime Error):
input = int(input())
nums = []
for _ in range(input):
  nums.append(int(input()))
print(0)


Fixed submission:
N = int(input())
p = []
for _ in range(N):
    p.append(int(input()))
 
pmax = max(p)
ans = int(sum(p)-pmax/2)
print(ans)

Buggy python submission (verdict: Runtime Error):
input = int(input())
nums = []
for x in range(input):
  nums.append(int(input()))
print(sum(nums))

Fixed submission:
N = int(input())
p = []
for _ in range(N):
    p.append(int(input()))
 
pmax = max(p)
ans = int(sum(p)-pmax/2)
print(ans)

Buggy python submission (verdict: Runtime Error):
input = int(input())
nums = []
max = 0
total = 0
for x in range(input):
  nums.append(int(input()))
print(int(sum(nums)-max(nums) + max(nums)/2))

Fixed submission:
N = int(input())
p = []
for _ in range(N):
    p.append(int(input()))
 
pmax = max(p)
ans = int(sum(p)-pmax/2)
print(ans)

Buggy python submission (verdict: Runtime Error):
input = int(input())
nums = []
max = 0
total = 0
for x in range(input):
  nums.append(int(input()))
print(sum(nums)-max(nums) + max(nums)/2)

Fixed submission:
N = int(input())
p = []
for _ in range(N):
    p.append(int(input()))
 
pmax = max(p)
ans = int(sum(p)-pmax/2)
print(ans)

Buggy python submission (verdict: Runtime Error):
input = int(input())
nums = []
max = 0
total = 0
for x in range(input):
  nums.append(int(input()))
  if(input > max):
    max = input
print(sum(nums)-max + max/2)

Fixed submission:
N = int(input())
p = []
for _ in range(N):
    p.append(int(input()))
 
pmax = max(p)
ans = int(sum(p)-pmax/2)
print(ans)

Buggy python submission (verdict: Runtime Error):
input = int(input())
nums = []
max = 0
total = 0
for x in range(input):
  nums.append(int(input()))
  if(input > max):
    max = input
  total += input
print(total-max + max/2)


Fixed submission:
N = int(input())
p = []
for _ in range(N):
    p.append(int(input()))
 
pmax = max(p)
ans = int(sum(p)-pmax/2)
print(ans)

Buggy python submission (verdict: Runtime Error):
input = int(input())
nums = []
max = 0
total = 0
for x in input:
  nums.append(int(input()))
  if(input > max):
    max = input
for x in range (1,len(nums)):
  total +=x
print(total - max + max/2) 
  

Fixed submission:
N = int(input())
p = []
for _ in range(N):
    p.append(int(input()))
 
pmax = max(p)
ans = int(sum(p)-pmax/2)
print(ans)

Buggy python submission (verdict: Runtime Error):
input = int(input())
nums = []
max = 0
total = 0
for x in input:
  nums.append(input)
  if(input > max):
    max = input
for x in range (1,len(nums)):
  total +=x
print(total - max + max/2) 
  


Fixed submission:
N = int(input())
p = []
for _ in range(N):
    p.append(int(input()))
 
pmax = max(p)
ans = int(sum(p)-pmax/2)
print(ans)