Buggy python submission (verdict: Runtime Error):
N = int(input())
ns = input().split()

dic = {}

for i in range(N):
    if(ns[i] in dic.keys() and dic[ns[i]]<=2):
        dic[ns[i]] += 1
    elif(ns[i] not in dic.keys()):
        dic[ns[i]] = 1

a,b,c = 0,0,0
for key in dic.keys():
    if(dic[key] == 1):
        a += 1
    elif(dic[key] == 2):
        b += 1
    elif(dic[key] == 3):
        c += 1

unique = a+b+c
sum_ = 0

sum_ += c
sum_ += (b+c)*(unique-1)

key_list = list(dic.keys())
n = len(key_list)
for p in range(n-2):
    for q in range(n-1):
        if(p<q):
            for r in range(n):
                if(q<r):
                    x,y,z = int(key_list[p]),int(key_list[q]),int(key_list[r])
                    if(x+y>z):
                        sum_ += unique-(r+1-1)
                            break

print(int(sum_))

Fixed submission:
a,b = input().split()
a,b = int(a),int(b)
print(max(a-2*b,0))

Buggy python submission (verdict: Runtime Error):
N = int(input())
ns = input().split()

sum_ = 0

for i in range(N):
    for j in range(N):
        sum_ += int(ns[i])*int(ns[j])
        
print(sum_)

Fixed submission:
a,b = input().split()
a,b = int(a),int(b)
print(max(a-2*b,0))

Buggy python submission (verdict: Runtime Error):
a,b = input().split()
#a,b = int(a),int(b)
print(max(a-2*b,0))

Fixed submission:
a,b = input().split()
a,b = int(a),int(b)
print(max(a-2*b,0))

Buggy python submission (verdict: Runtime Error):
a,b = input().split()
a,b = int(a),int(b)
print(max(a-2*b,0))

Fixed submission:
a,b = input().split()
a,b = int(a),int(b)
print(max(a-2*b,0))

Buggy python submission (verdict: Runtime Error):
a,b = input().split()
print(max(0,a-2*b))

Fixed submission:
a,b = input().split()
a,b = int(a),int(b)
print(max(a-2*b,0))

Buggy python submission (verdict: Runtime Error):
a,b = input().split()
A,B = int(a),int(b)
if(A>(B*2)):
	print(A-B*2)
else:
	print(0)

Fixed submission:
a,b = input().split()
a,b = int(a),int(b)
print(max(a-2*b,0))

Buggy python submission (verdict: Runtime Error):
a,b = (int(x) for x in input().split())
if(a>(b*2)):
  	print(a-(b*2))
else:
	print(0)

Fixed submission:
a,b = input().split()
a,b = int(a),int(b)
print(max(a-2*b,0))

Buggy python submission (verdict: Runtime Error):
a,b = input().split()

try:
    if(a>(b*2)):
      print(a-b*2)
    else:
      print(0)
except:
	print(0)

Fixed submission:
a,b = input().split()
a,b = int(a),int(b)
print(max(a-2*b,0))

Buggy python submission (verdict: Runtime Error):
try:
	a,b = input().split()
    if(a>(b*2)):
  		print(a-(b*2))
    else:
    	print(0)
except:
  print(0)



Fixed submission:
a,b = input().split()
a,b = int(a),int(b)
print(max(a-2*b,0))

Buggy python submission (verdict: Runtime Error):
a,b = input().split()
if(a>(b*2)):
  print(a-(b*2))
else:
  print(0)


Fixed submission:
a,b = input().split()
a,b = int(a),int(b)
print(max(a-2*b,0))

Buggy python submission (verdict: Runtime Error):
a,b = input().split()
if(a>(b*2)):
  print(a-b*2)
else:
  print(0)

Fixed submission:
a,b = input().split()
a,b = int(a),int(b)
print(max(a-2*b,0))

Buggy python submission (verdict: Runtime Error):
a,b=input().split()

if(a>(b*2)):
  print(a-b*2)
 
else:
  0

Fixed submission:
a,b = input().split()
a,b = int(a),int(b)
print(max(a-2*b,0))