ZhenlongDai/ACPR huggingface dataset:
Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
ans = "No"
for i in range(15):
    if i * 7 % 4 == 0:
        ans = "Yes"
print(ans)


Failing test case input:
-226

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
N = int(input())
ans = "No"
for i in range(15):
    now = N - i * 7
    if now >= 0 and now % 4 == 0:
        ans = "Yes"
print(ans)

Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
ans = "No"
for i in range(15):
    if (N - i * 7) % 4 == 0:
        ans = "Yes"
print(ans)


Failing test case input:
-207

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
N = int(input())
ans = "No"
for i in range(15):
    now = N - i * 7
    if now >= 0 and now % 4 == 0:
        ans = "Yes"
print(ans)

Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
a = N
AA = [(N-7*i)%4 for i in range(a)]
if 0 in AA:
    print("YES")
else:
    print("NO")


Failing test case input:
-207

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
N = int(input())
a = N
AA = [(N-7*i)%4 for i in range(a+1)]
if 0 in AA:
    print("Yes")
else:
    print("No")

Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
output = 0
for a in range(int(100/4)+1):
  for b in range(int(100/7)+1):
    total = 4*a + 7*b
    if total == N:
      output += 1
print(output)

Failing test case input:
-207

Expected output:
No


Actual output:
0


Fixed submission (verdict: Accepted):
N = int(input())

def is_buyable():
  output = 0
  for a in range(int(100/4)+1):
    for b in range(int(100/7)+1):
      total = 4*a + 7*b
      if total == N:
        return True

if is_buyable():
  print("Yes")
else:
  print("No")

Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
flag = False
for n in range(0,25):
    for i in range(0,15):
        if n * 4 + i*7 ==n and n !=0 or i != 0:
            flag = True
if flag :
    print("Yes")
else :
    print("No")

Failing test case input:
-207

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
n = int(input())
flag = False
for t in range(0,25):
    for i in range(0,15):
        if t !=0 or i != 0:
            if t*4 + i*7==n:
                flag = True
if flag :
    print("Yes")
else :
    print("No")

Problem: p03285
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
ans = 0
for i in range(n+1):
  for j in range(n+1):
    if 4 * i + 7 * j == n:
      ans += 1
print(ans)

Failing test case input:
-207

Expected output:
No


Actual output:
0


Fixed submission (verdict: Accepted):
import sys
n = int(input())
for i in range(n+1):
  for j in range(n+1):
    if 4 * i + 7 * j == n:
      print("Yes")
      sys.exit()
print("No")
Problem: p03285
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
import itertools



N = int(input())
X = list(range(26))
Y = list(range(15))
no_count = 0
for i, j in list(itertools.product(X, Y)):
  if 4 * i + 7 * j == N:
    print('yes')
    break
  else:
    no_count += 1
if no_count == len(list(itertools.product(X, Y))):
  print('no')

Failing test case input:
-207

Expected output:
No


Actual output:
no


Fixed submission (verdict: Accepted):
import itertools
import sys



N = int(input())
X = list(range(26))
Y = list(range(15))

for i, j in list(itertools.product(X, Y)):
  if 4 * i + 7 * j == N:
    print('Yes')
    sys.exit()
print('No')

Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

N = int(input())


for seven_n in range(0, 101, 7):
    if (N - seven_n) % 4 == 0 or N - seven_n == 0:
        print("Yes")
        exit(0)
print("No")

Failing test case input:
-226

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):

N = int(input())


if N < 4:
    print("No")
else:
    for seven_n in range(0, N + 1, 7):
        if (N - seven_n) % 4 == 0 or N - seven_n == 0:
            print("Yes")
            exit(0)
    print("No")

Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
donuts = 7
cakes = 4
answer = 0
def calc1():
  for a in range(0,26):
    for b in range(0,26):
      if donuts * a + cakes * b == N:
        return 'Yes'
      elif donuts * a + cakes * b  > N:
        break
  return 'No'

calc1()

Failing test case input:
-207

Expected output:
No


Actual output:

Fixed submission (verdict: Accepted):
N = int(input())
donuts = 7
cakes = 4
answer = 0
def calc1():
  for a in range(0,26):
    for b in range(0,26):
      if donuts * a + cakes * b == N:
        return 'Yes'
      elif donuts * a + cakes * b  > N:
        break
  return 'No'

print(calc1())

Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys
n = int(input())
for i in range(26):
  if (n - 4 * i ) % 7:
    continue
  else:
    print("Yes")
    sys.exit()
print("No")

Failing test case input:
-207

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
import sys
n = int(input())
for i in range(26):
  if (n - 4 * i ) % 7 or n - 4 * i < 0:
    continue
  else:
    print("Yes")
    sys.exit()
print("No")

Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def cakes_and_donuts(N: int) -> bool:
    while N > 0:
        if N % 4 == 0:
            return True
        N -= 7

    return N == 0  


if __name__ == "__main__":
    N = int(input())
    ans = cakes_and_donuts(N)
    print(ans)


Failing test case input:
-207

Expected output:
No


Actual output:
False


Fixed submission (verdict: Accepted):
def cakes_and_donuts(N: int) -> bool:
    while N > 0:
        if N % 4 == 0:
            return True
        N -= 7

    return N == 0  


if __name__ == "__main__":
    N = int(input())
    yes = cakes_and_donuts(N)
    print('Yes' if yes else 'No')
Problem: p03285
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=int(input())
a=4
b=7
ans='No'
for i in range(26):
	for j in range(15):
		if a*i+b*j==n:
			print('Yes')
			break


Failing test case input:
-207

Expected output:
No


Actual output:

Fixed submission (verdict: Accepted):
n=int(input())
for i in range(26):
  for j in range(15):
    if 4*i+7*j==n:
      print('Yes')
      exit()
print('No')

Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
if __name__ == "__main__":
    N = input()
    for x in range(0, 100):
        y = 100 - 4 * x
        if y % 7 == 0:
            print ("Yes")
            exit(0)
    print ("No")

Failing test case input:
-207

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
if __name__ == "__main__":
    N = int(input())
    for x in range(0, 100):
        y = N - 4 * x
        if y < 0:
            break
        if y % 7 == 0:
            print ("Yes")
            exit(0)
    print ("No")

Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())

r = N 

for i in range(r+1):
    if (N - 7*i) % 4 == 0:
        print('No')
        break
else:
    print('N0')

Failing test case input:
-207

Expected output:
No


Actual output:
N0


Fixed submission (verdict: Accepted):
N = int(input())

r = N 

for i in range(r+1):
    if (N - 7*i) % 4 == 0:
        print('Yes')
        break
else:
    print('No')

Problem: p03285
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=int(input())

for i in range(26):
  for j in range(15):
    if 4*i+7*j==n:
      print("Yes")
    else:
      print("No")


Failing test case input:
-226

Expected output:
No


Actual output:
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No


Fixed submission (verdict: Accepted):
n=int(input())

s="No"
for i in range(26):
  for j in range(15):
    if 4*i+7*j==n:
      s="Yes"
print(s)
Problem: p03285
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())



max_CA = int(N / 4) + int(N % 4) 
max_CB = int(N / 7) + int(N % 7)

print(f'four:{max_CA}')
print(f'seven:{max_CB}')

flag = False
for i in range(max_CA +1):
    for j in range(max_CB+1):
        sum_C = 4 * i + 7 * j
        if N == sum_C:
            flag = True
            
if flag:
    print('Yes')
else:
    print('No')

Failing test case input:
-226

Expected output:
No


Actual output:
four:-54
seven:-27
No


Fixed submission (verdict: Accepted):
N = int(input())



max_CA = int(N / 4) + int(N % 4) 
max_CB = int(N / 7) + int(N % 7)




flag = False
for i in range(max_CA +1):
    for j in range(max_CB+1):
        sum_C = 4 * i + 7 * j
        if N == sum_C:
            flag = True
            
if flag:
    print('Yes')
else:
    print('No')

Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
multiple_4 = [x*4 for x in range(101) if x >= 1 and x <= 25]
multiple_7 = [x*7 for x in range(101) if x >= 1 and x <= 14]
multiple_4_7 = [x*4+7 for x in range(101) if x >= 1 and x <= 23]
multiple_7_4 = [x*7+4 for x in range(101) if x >= 1 and x <= 23]
if N in multiple_4 or N in multiple_7 or N in multiple_4_7 or N in multiple_7_4:
  print(N, "Yes")
else:
  print(N, "No")

Failing test case input:
-226

Expected output:
No


Actual output:
-226 No


Fixed submission (verdict: Accepted):
N = int(input())
multiple_4 = [x*4 for x in range(101) if x >= 1 and x <= 25]
multiple_7 = [x*7 for x in range(101) if x >= 1 and x <= 14]
multiple_4_7 = [x*4+7 for x in range(101) if x >= 1 and x <= 23]
multiple_7_4 = [x*7+4 for x in range(101) if x >= 1 and x <= 23]
tmp = []
for i in range(10):
  for j in range(10):
    solve = (4*(i+1))+(7*(j+1))
    if solve <= 100:
      tmp.append(solve)
multiple_other = sorted(list(set(tmp)))
if N in multiple_4 or N in multiple_7 or N in multiple_4_7 or N in multiple_7_4 or N in multiple_other:
  print("Yes")
else:
  print("No")

Problem: p03285
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
ans = int(input())
loopFlg = True

for i in range(26):
  if loopFlg == False:
    break
  for j in range(15):
    if 4*i + 7*j == ans:
      loopFlg = False

      
if loopFlg == True:
  print('NO')
else:
  print('YES')

Failing test case input:
-207

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
ans = int(input())
loopFlg = True

for i in range(26):
  if loopFlg == False:
    break
  for j in range(15):
    if 4*i + 7*j == ans:
      loopFlg = False

      
if loopFlg == True:
  print('No')
else:
  print('Yes')

Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())

x=n
y=n

print("yes" if len([n-4*a-7*b for b in range(y+1) for a in range(x+1) if n-4*a-7*b==0])!=0 else "no")


Failing test case input:
-226

Expected output:
No


Actual output:
no


Fixed submission (verdict: Accepted):
n=int(input())

x=n
y=n

print("Yes" if len([n-4*a-7*b for b in range(y+1) for a in range(x+1) if n-4*a-7*b==0])!=0 else "No")
Problem: p03285
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=int(input())


a=0
for i in range(0,n):
    for j in range(0,n):
        if 4*i+7*j==n:
            a+=1


if a==0:
    print("N0")
else:
    print("Yes")

Failing test case input:
-207

Expected output:
No


Actual output:
N0


Fixed submission (verdict: Accepted):
n=int(input())


a=0
for i in range(0,n):
    for j in range(0,n):
        if 4*i+7*j==n:
            a+=1


if a==0:
    print("No")
else:
    print("Yes")

Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys
n = int(input())
for i in range(26):
  if (n - 4 * i ) % 7 or n - 4 * i >= 0:
    continue
  else:
    print("Yes")
    sys.exit()
print("No")


Failing test case input:
-226

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
import sys
n = int(input())
for i in range(26):
  if (n - 4 * i ) % 7 or n - 4 * i < 0:
    continue
  else:
    print("Yes")
    sys.exit()
print("No")

Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
counter = False
for n in range (0,10):
  for i in range (math.ceil((n+1) / 4) ):
    for j in range (math.ceil((n+1) / 7) ):
      
      if i*4 + j*7 == n:
        counter = True
  if counter == True:
   print("Yes")
  else:
   print("No")
  counter=False

Failing test case input:
-226

Expected output:
No


Actual output:
Yes
No
No
No
Yes
No
No
Yes
Yes
No


Fixed submission (verdict: Accepted):
import math
n = int(input())
counter = False

for i in range (math.ceil((n+1) / 4) ):
  for j in range (math.ceil((n+1) / 7) ):
    
    if i*4 + j*7 == n:
      counter = True
if counter == True:
  print("Yes")
else:
  print("No")

Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())

sum = 0
for i in range(30):
    for j in range(20):
        total = 4*i + 7*j
        if total == N:
            sum += 1


print(sum)

Failing test case input:
-226

Expected output:
No


Actual output:
0


Fixed submission (verdict: Accepted):
N = int(input())

sum = 0
for i in range(30):
    for j in range(20):
        total = 4*i + 7*j
        if total == N:
            sum += 1

if sum > 0:
    print("Yes")
else:
    print("No")

Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys


def solve(K) : 
    x = K
    if K%2==0 :
        return x**2
    else :
        y = x+1
        return x*y

def readQuestion():
    line = sys.stdin.readline().rstrip()
    return int(line)

def main():
    n = readQuestion()
    answer = solve(n)
    print(answer)
    
if __name__ == '__main__':
    main()

Failing test case input:
-207

Expected output:
No


Actual output:
42642


Fixed submission (verdict: Accepted):
import sys


def solve(N):
    hantei = 0
    for i in range(26):
        for j in range(20):
            if 4*i + 7*j == N :
                hantei = 4*i + 7*j
    if hantei == N :
        return ('Yes')
    else :
        return('No')

def readQuestion():
    line = sys.stdin.readline().rstrip()
    return int(line)

def main():
    n = readQuestion()
    answer = solve(n)
    print(answer)
    
if __name__ == '__main__':
    main()
Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
Ans = 0
for x in range(N):
  for y in range(N):
    if 4*x+7*y == N:
      Ans += 1
print(Ans)

Failing test case input:
-207

Expected output:
No


Actual output:
0


Fixed submission (verdict: Accepted):
N = int(input())
count = 0
for x in range(N):
  for y in range(N):
    if 4*x+7*y == N:
      count += 1
if count > 0:
  print('Yes')
else:
  print('No')

Problem: p03285
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N=int(input())
a='No'
for i in range(14):
  if (N-i*7)%4==0:
    a='Yes'
    break
print(a)

Failing test case input:
-226

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
N=int(input())
a='No'
for i in range(14):
  if N<0:
    break
  if N%4==0:
    a='Yes'
    break
  N-=7
print(a)

Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

N = int(open(0).read())
maxCake = N
maxDon = N
flg =False
for i in range(maxCake):
    for j in range(maxDon):
        if i*4+j*7==N:
            print('Yes')
            flg = True
            break;
    if flg == True:
        break
if flg == False:
    print('NO')
        

Failing test case input:
-207

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):


N = int(input())
maxCake = N
maxDon = N
flg =False
for i in range(maxCake):
    for j in range(maxDon):
        if i*4+j*7==N:
            print('Yes')
            flg = True
            break;
    if flg == True:
        break
if flg == False:
    print('No')

Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())

def do():
    for i in range(0, N, 4):
        for j in range(0, N, 7):
            if i + j == N:
                print("YES")
                return
    print("NO")

do()

Failing test case input:
-226

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
N = int(input())

def do():
    for i in range(0, N + 1, 4):
        for j in range(0, N + 1, 7):
            if i + j == N:
                print("Yes")
                return
    print("No")

do()

Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
print("YES" if n>=7*((-n)%4) else "NO")

Failing test case input:
-226

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
n=int(input())
print("Yes" if n>=7*((-n)%4) else "No")

Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N=int(input())
nlist=[1,2,3,5,6,9,13,17]
flag=0

for a in range(len(nlist)):
 if N==nlist[a]:
  flag=1
  break

if flag==1:
 print("No")
else:
 print("Yes")

Failing test case input:
-226

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
N=int(input())
flag=0

for a in range(100
 for b in range(100
  if N==(a*7+b*4):
   flag=1
   break

if flag==1:
 print("Yes")
else:
 print("No")
Problem: p03285
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=int(input())


a=0
for i in range(0,26):
    for j in range(0,20):
        if 4*i+7*j==n:
            a+=1


if a==0:
    print("N0")
else:
    print("Yes")
            

Failing test case input:
-207

Expected output:
No


Actual output:
N0


Fixed submission (verdict: Accepted):
n=int(input())


a=0
for i in range(0,n):
    for j in range(0,n):
        if 4*i+7*j==n:
            a+=1


if a==0:
    print("No")
else:
    print("Yes")

Problem: p03285
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())

for i in range(26):
    for j in range(16):
        total = 4*i +7*j
        if total == n:
            print('Yes')
            break
    break

Failing test case input:
-207

Expected output:
No


Actual output:

Fixed submission (verdict: Accepted):
n = int(input())
s = 'No'

for i in range(26):
    for j in range(16):
        total = 4*i +7*j
        if total == n:
            s = 'Yes'
            break
    if total ==n:
        break
print(s)

Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=int(input())

b=int(a/7)
c=int(a/4)

for i in range(b):
    for j in range(c):
        if 7*b+4*c==a:
            print("Yes")
        else:
            print("No")



Failing test case input:
-226

Expected output:
No


Actual output:

Fixed submission (verdict: Accepted):
a=int(input())

b=int(a/7)
c=int(a/4)
k=0

for i in range(b+1):
    for j in range(c+1):
        if 7*i+4*j==a:
            k=1
if k==1:
    print("Yes")
else:
    print("No")

Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def Cakes_and_Donuts(N):
  
    CP = 4
    DP = 7
    
    if N <= 3:
        return "No"
    
    for i in range(26):
        for j in range(15):
            if (CP * i + DP * j) == N:
                return "Yes"
    return "No"
  
  
N = int(input())
Cakes_and_Donuts(N)

Failing test case input:
-226

Expected output:
No


Actual output:

Fixed submission (verdict: Accepted):
def main(N):
  
    CP = 4
    DP = 7
    
    if N <= 3:
        return "No"
    
    for i in range(100):
        for j in range(100):
            if (CP * i + DP * j) == N:
                return "Yes"
    return "No"
N = int(input())
print(main(N))

Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
ans =0
for i in range(25):
    for j in range(int(100/7)):
        if(i*4+j*7 ==N):
            ans +=1
print(ans)
        

Failing test case input:
-207

Expected output:
No


Actual output:
0


Fixed submission (verdict: Accepted):
N = int(input())
ans =0
for i in range(25):
    for j in range(int(100/7)):
        if(i*4+j*7 ==N):
            ans +=1
if(ans >0):
    print("Yes")
else:
    print("No")
Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

Sum = int(input())

r = 0
for i in range(26):
    for k in range(15):
        if 4*i+7*k == Sum:
            r = r +1
        else:
            r = r
if r > 0:
    print("YES")
else:
    print("NO")


Failing test case input:
-207

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):

Sum = int(input())

r = 0
for i in range(26):
    for k in range(15):
        if 4*i+7*k == Sum:
            r = r +1
        else:
            r = r
if r > 0:
    print("Yes")
else:
    print("No")

Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys
sys.setrecursionlimit(200000)
input = sys.stdin.readline

N, = map(int, input().split())

for i in range(100):
    for j in range(100):
        if N == i * 4 + j * 7:
            print("YES")
            exit()

print("NO")

Failing test case input:
-226

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
import sys
sys.setrecursionlimit(200000)
input = sys.stdin.readline

N, = map(int, input().split())

for i in range(100):
    for j in range(100):
        if i == 0 and j == 0:
            continue
        if N == i * 4 + j * 7:
            print("Yes")
            exit()

print("No")

Problem: p03285
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())
a = N
b = N
print(a)
print(b)
for i in range(a+1):
    for j in range(b+1):
        if 7*i+4*j == N:
            print('Yes')
            exit()
print('No')

Failing test case input:
-226

Expected output:
No


Actual output:
-226
-226
No


Fixed submission (verdict: Accepted):
N = int(input())
a = N
b = N
for i in range(a+1):
    for j in range(b+1):
        if 7*i+4*j == N:
            print('Yes')
            exit()
print('No')

Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())

for i in range(100):
    for j in range(100):
        if 4*i+7*j == N:
            print("Yes")
            exit()

Failing test case input:
-226

Expected output:
No


Actual output:

Fixed submission (verdict: Accepted):
N = int(input())

for i in range(100):
    for j in range(100):
        if 4*i+7*j == N:
            print("Yes")
            exit()
print("No")

Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
ans = 'No'
for i in range(100+1):
  if i % 4 == 0 and (N - i) % 7 == 0:
    ans = 'Yes'

print(ans)

Failing test case input:
-226

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
N = int(input())
ans = 'No'
for i in range(N+1):
  if i % 4 == 0 and (N - i) % 7 == 0:
    ans = 'Yes'
 
print(ans)
Problem: p03285
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
n = int(input())
x = 100
for i in range(x):
    for j in range(x):
        if 4*i+7*j == n:
            print("Yes")
            break
    else:
        continue
    break

Failing test case input:
-207

Expected output:
No


Actual output:

Fixed submission (verdict: Accepted):
n = int(input())
x = 100
for i in range(x):
    for j in range(x):
        if 4*i+7*j == n:
            print("Yes")
            break
    else:
        continue
    break
else:
    print('No')

Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys

N = int(input())

for i in range(26):
  for j in range(16):
    if N == i * 4 + j * 7:
      print('YES')
      sys.exit()
print('NO')

Failing test case input:
-226

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
import sys
 
N = int(input())
 
for i in range(26):
  for j in range(16):
    if N == i * 4 + j * 7:
      print('Yes')
      sys.exit()
print('No')

Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
four_w = []
seven_w = []
cross = []

for i in range(1,100):
    if i % 4 == 0:
        four_w.append(i)
    elif i % 7 ==0:
        seven_w.append(i)

for four in four_w:
    for seven in seven_w:
        cross.append(four + seven)

n = int(input())

n in four_w,seven_w,cross

Failing test case input:
-207

Expected output:
No


Actual output:

Fixed submission (verdict: Accepted):
four_w = []
seven_w = []
cross = []

for i in range(1,101):
    if i % 4 == 0:
        four_w.append(i)
    elif i % 7 ==0:
        seven_w.append(i)

for four in four_w:
    for seven in seven_w:
        cross.append(four + seven)

n = int(input())

if n in cross:
    print("Yes")
elif n in seven_w:
    print("Yes")
elif n in four_w:
    print("Yes")
else:
    print("No")

Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())

if n < 4: 
  print("No")

if n % 4 == 0 or n % 7 == 0:  
  print("Yes")

four_max = n 

m = 1
ans = False
while m < four_max + 1:
  if (n - (4*m)) % 7 == 0:
    ans = True
    break
  m = m+1

if ans:
  print("Yes")
else:
  print("No")
  

Failing test case input:
-226

Expected output:
No


Actual output:
No
No


Fixed submission (verdict: Accepted):
n = int(input())

if n < 4: 
  print("No")

elif n % 4 == 0 or n % 7 == 0:  
  print("Yes")
else:
  four_max = n 

  m = 1
  ans = False
  while m < four_max + 1:
    if (n - (4*m)) % 7 == 0:
      ans = True
      break
    m = m+1

  if ans:
    print("Yes")
  else:
    print("No")
Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
div4 = int(N/4) + 1
div7 = int(N/7) + 1

flg = False
for i in range(div4):
  sum = i * 4
  for t in range(div7):
    sum += t * 7
    if(N == sum):
      flg = True
      
      
if(flg):
  print("YES")
else:
  print("NO")

Failing test case input:
-207

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
N = int(input())
div4 = int(N/4) + 1
div7 = int(N/7) + 1

flg = False
for i in range(div4):
  sum = i * 4
  for t in range(div7):
    sum += t * 7
    if(N == sum):
      flg = True
      
      
if(flg):
  print("Yes")
else:
  print("No")

Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x=int(input())
t=0
while x>=0:
  if x%7==0:
    t+=1
  x-=4
print(t)

Failing test case input:
-207

Expected output:
No


Actual output:
0


Fixed submission (verdict: Accepted):
x=int(input())
t=0
while x>=0:
  if x%7==0:
    t=1
  x-=4
if t==0:
  print('No')
else: print('Yes')

Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
num = 0
while(True):
    if (N - num*4) % 7 == 0:
        print("Yes")
        break
    else:
        if N < num * 4:
            break
    num+=1

Failing test case input:
-226

Expected output:
No


Actual output:

Fixed submission (verdict: Accepted):
N = int(input())
num = 0
ans = False
while(True):
    if (N - num*4) % 7 == 0:
        ans = True
        break
    else:
        if N < num * 4:
            break
    num+=1
if ans:
    print("Yes")
else:
    print("No")

Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
flag= True
N = int(input())
for i in range(0,26):
    if (N-4*i) % 7==0:
        flag=False
        break
if flag==True:
    print("No")
else:
    print("Yes")

Failing test case input:
-226

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
flag= True
N = int(input())
for i in range(0,26):
    if (N-4*i) % 7==0:
        flag=False
        break
    elif (N-4*i)<0:
        break
if flag==True:
    print("No")
else:
    print("Yes")

Problem: p03285
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
a=int(input())
print("Yes" if [4*x+11*y for x in range(26) for y in range(9)].count(a) else "NO")


Failing test case input:
-207

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
a=int(input())
print("Yes" if [4*x+7*y for x in range(101) for y in range(101)].count(a) else "No")
Problem: p04047
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
a = list(map(int, input().split()))
a.sort()
print(a[::2])

Failing test case input:
2
-4 0 -36 1

Expected output:
-36


Actual output:
[-36, 0]


Fixed submission (verdict: Accepted):
n = int(input())
a = list(map(int, input().split()))
a.sort()
print(sum(a[::2]))

Problem: p04047
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
num = int(input())
num_list = sorted(list(map(int, input().split())))
print(num_list)
i = 0
sum = 0
while i < num * 2:
  sum += num_list[i]
  i += 2
print(sum)

Failing test case input:
2
1 -13 1 -2

Expected output:
-12


Actual output:
[-13, -2, 1, 1]
-12


Fixed submission (verdict: Accepted):
num = int(input())
num_list = sorted(list(map(int, input().split())))
i = 0
sum = 0
while i < num * 2:
  sum += num_list[i]
  i += 2
print(sum)

Problem: p04047
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N=int(input())
inp=input()
L=[int(val) for val in inp.split()]
L=sorted(L,reverse=True)
total=0
start=0
for _ in range(N):
  total+=min(L[start],L[start+1])
  start+=2
 

Failing test case input:
5
010 14 -1 -1 0 0 -2 12 0 56

Expected output:
21


Actual output:

Fixed submission (verdict: Accepted):
N=int(input())
inp=input()
L=[int(val) for val in inp.split()]
L=sorted(L,reverse=True)
total=0
start=0
for _ in range(N):
  total+=min(L[start],L[start+1])
  start+=2
print(total)

Problem: p04047
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
l=list(map(int,input().split()))
 
l.sort()
k=l[::2]
sum=0
for i in range(n-2):
  sum += k[i]
  
print(sum)

Failing test case input:
2
-9 -1 2 -1

Expected output:
-10


Actual output:
0


Fixed submission (verdict: Accepted):
n=int(input())
l=list(map(int,input().split()))
 
l.sort()
k=l[::2]
sum=0
for i in range(n):
  sum += k[i]
  
print(sum)

Problem: p04047
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
a = sorted(list(map(int, input().split())))
ans = 0
for i in range(0,2*n,2):
  ans += i
print(ans)

Failing test case input:
5
011 14 -1 1 0 0 -2 20 1 56

Expected output:
30


Actual output:
20


Fixed submission (verdict: Accepted):
n = int(input())
a = sorted(list(map(int, input().split())))
ans = 0
for i in range(0,2*n,2):
  ans += a[i]
print(ans)

Problem: p04047
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
table = list(map(int,input().split()))
table.sort()
count = 0
for i in range(n):
    if i%2 == 0:
        count += table[i]
    else:
        pass
print(count)

Failing test case input:
5
001 48 0 1 1 2 0 16 1 302

Expected output:
52


Actual output:
2


Fixed submission (verdict: Accepted):
n = int(input())
table = list(map(int,input().split()))
table.sort()
count = 0
for i in range(2*n):
    if i%2 == 0:
        count += table[i]
    else:
        pass
print(count)
Problem: p04047
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
 
arr = list(map(int, input().split()))

arr.sort()

res = 0

for i in range(len(arr)-1):
  res+=min(arr[i], arr[i+1])
  
print(res)

Failing test case input:
2
-2 -2 -66 2

Expected output:
-68


Actual output:
-70


Fixed submission (verdict: Accepted):
n = int(input())
 
arr = list(map(int, input().split()))

arr.sort()

res = 0
i=0
l = len(arr)
while i<l:
  res+=min(arr[i], arr[i+1])
  i+=2
  
print(res)

Problem: p04047
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
a = sorted(list(map(int, input().split())))
s = 0
for i in range(2*n-1):
  s += min(a[i], a[i+1])
print(s)

Failing test case input:
5
101 40 0 0 1 1 0 16 1 302

Expected output:
118


Actual output:
160


Fixed submission (verdict: Accepted):
n = int(input())
a = sorted(list(map(int, input().split())))
s = 0
for i in range(2 * n):
  if i % 2 == 0:
    s += a[i]
print(s)

Problem: p04047
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
L = list(map(int,input().split()))
L.sort()
ans = 0
i = 0
while(i<N):
  ans += L[i]
  i += 2

Failing test case input:
5
011 14 -1 0 0 0 -2 20 1 56

Expected output:
29


Actual output:

Fixed submission (verdict: Accepted):
N = int(input())
L = list(map(int,input().split()))
L.sort()
ans = 0
i = 0
while(i<2*N):
  ans += L[i]
  i += 2
print(ans)

Problem: p04047
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
L = list(map(int, input().split()))
L.sort()
sum(L[::2])

Failing test case input:
5
010 14 -1 -1 0 0 -2 12 0 56

Expected output:
21


Actual output:

Fixed submission (verdict: Accepted):
N = int(input())
L = list(map(int, input().split()))
L.sort()
print(sum(L[::2]))

Problem: p04047
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
l = [int(i) for i in input().split()]
a = 0
for i in l:
    if i % 2 == 0:
        a = a + i
print(a)


Failing test case input:
2
2 -1 0 0

Expected output:
-1


Actual output:
2


Fixed submission (verdict: Accepted):
n = int(input())
l = [int(i) for i in input().split()]
a = 0
l.sort()
for i in range(len(l)):
    if i % 2 == 0:
        a = a + l[i]
print(a)

Problem: p04047
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N=int(input())
L=list(map(int,input().split()))
L.sort()
S=0
for i in L[::2]:
  S=S+1
print(S)

Failing test case input:
2
1 3 1 2

Expected output:
3

Actual output:
2


Fixed submission (verdict: Accepted):
N=int(input())
L=list(map(int,input().split()))
L.sort()
S=0
for i in L[::2]:
  S=S+i
print(S)

Problem: p04047
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
l=sorted(list(map(int,input().split())),reverse=True)
cnt=0
for i in range(0,2*n,2):
    cnt+=l[i+1]
    print(i)
print(cnt)

Failing test case input:
5
110 0 0 0 0 11 1 13 2 68

Expected output:
80


Actual output:
0
2
4
6
8
80


Fixed submission (verdict: Accepted):
n=int(input())
l=sorted(list(map(int,input().split())),reverse=True)
cnt=0
for i in range(0,2*n,2):
    cnt+=l[i+1]
print(cnt)
Problem: p04047
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
L = list(map(int,input().split()))
L.sort()

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

Failing test case input:
5
101 5 -1 0 -1 1 -11 13 0 27

Expected output:
20


Actual output:
-12


Fixed submission (verdict: Accepted):
N = int(input())
L = list(map(int,input().split()))
L.sort()

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

Problem: p04047
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
num_meals = int(input())
skewers = list(map(int, input().split()))
skewers.sort()
print(skewers)
ingredients = 0
for skewer in range(0,(len(skewers) - 1),+2):
    print(skewers[skewer])
    ingredients = ingredients + skewers[skewer]
print(ingredients)


Failing test case input:
5
101 2 -1 -1 -1 1 -12 13 1 27

Expected output:
17


Actual output:
[-12, -1, -1, -1, 1, 1, 2, 13, 27, 101]
-12
-1
1
2
27
17


Fixed submission (verdict: Accepted):
num_meals = int(input())
skewers = list(map(int, input().split()))
skewers.sort()
ingredients = 0
for skewer in range(0,(len(skewers) - 1),+2):
    ingredients = ingredients + skewers[skewer]
print(ingredients)

Problem: p04047
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
a = sorted(list(map(int, input().split())))
s = 0
for i in range(n):
  if i % 2 == 0:
    s += a[i]
print(s)

Failing test case input:
5
101 40 0 0 0 10 0 28 1 302

Expected output:
130


Actual output:
1


Fixed submission (verdict: Accepted):
n = int(input())
a = sorted(list(map(int, input().split())))
s = 0
for i in range(2 * n):
  if i % 2 == 0:
    s += a[i]
print(s)

Problem: p04047
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
num = int(input())
str = input()
Li = list(map(int,str.split(' ')))
Li.sort()
sum = 0 
for i in range(0,num,2):
	sum += Li[i]
print(sum)


Failing test case input:
5
101 5 -1 0 -1 1 -11 13 0 27

Expected output:
20


Actual output:
-12


Fixed submission (verdict: Accepted):
num = int(input())
str = input()
Li = list(map(int,str.split(' ')))
Li.sort()
sum = 0 
if len(Li)%2 == 1:
	Li = Li[1:]
for i in range(0,len(Li),2):
	sum += Li[i]
print(sum)

Problem: p04047
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
l = sorted(list(map(int, input().split())))
s = 0
for i in range(0,n,2):
    s += l[i]
print(s)

Failing test case input:
5
100 48 0 1 1 2 0 16 0 302

Expected output:
117


Actual output:
1


Fixed submission (verdict: Accepted):
n = int(input())
l = sorted(list(map(int, input().split())))
s = 0
for i in range(0,n*2,2):
    s += l[i]
print(s)

Problem: p04047
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
l=list(map(int, input().split()))
s=0
for i in range(0,2*n, 2):
  s+=min(l[i], l[i+1]) 
print(s) 

Failing test case input:
5
100 5 -1 0 -1 1 -11 20 0 33

Expected output:
26


Actual output:
-8


Fixed submission (verdict: Accepted):
n=int(input())
l=list(map(int, input().split()))
l.sort()
s=0
for i in range(0,2*n, 2):
  s+=min(l[i], l[i+1]) 
print(s)
Problem: p04047
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
class Scanner:
    def readint(self): return int(input())
    def readstring(self): return input().rstrip()
    def readline(self): return list(map(int, input().split()))
    def reads(self): return list(input().split())
    def newmat(self, n, x): return [[x for i in range(n)] for j in range(n)]

sc = Scanner()
n = sc.readint()
L = sc.readline()
L.sort()
print(L[::2])
print(sum(L[::2]))

Failing test case input:
5
101 2 2 -1 -1 5 -6 15 1 46

Expected output:
46


Actual output:
[-6, -1, 2, 5, 46]
46


Fixed submission (verdict: Accepted):
class Scanner:
    def readint(self): return int(input())
    def readstring(self): return input().rstrip()
    def readline(self): return list(map(int, input().split()))
    def reads(self): return list(input().split())
    def newmat(self, n, x): return [[x for i in range(n)] for j in range(n)]

sc = Scanner()
n = sc.readint()
L = sc.readline()
L.sort()
print(sum(L[::2]))

Problem: p04047
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
input()
L=[int(l) for l in input().split()]
print(sum(L[1::2]))

Failing test case input:
5
101 5 -1 0 -1 1 -11 13 0 27

Expected output:
20


Actual output:
46


Fixed submission (verdict: Accepted):
input()
L=[int(l) for l in input().split()]
L.sort(reverse=True)
print(sum(L[1::2]))

Problem: p04047
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
l = [int(i) for i in input().split()]
a = 0
for i in range(len(l)):
    if i % 2 == 0:
        a = a + l[i]
print(a)


Failing test case input:
5
001 0 1 1 1 0 1 9 -1 3

Expected output:
4


Actual output:
3


Fixed submission (verdict: Accepted):
n = int(input())
l = [int(i) for i in input().split()]
a = 0
l.sort()
for i in range(len(l)):
    if i % 2 == 0:
        a = a + l[i]
print(a)

Problem: p04047
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
L=sorted(list(map(int,input().split())))
ans=0
for i in range(0,n,2):
  ans+=L[i]
print(ans)


Failing test case input:
5
100 1 2 3 14 15 58 58 9 29

Expected output:
105


Actual output:
18


Fixed submission (verdict: Accepted):
n=int(input())
L=sorted(list(map(int,input().split())))
ans=0
for i in range(0,n*2,2):
  ans+=L[i]
print(ans)

Problem: p04047
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
l=list(map(int,input().split()))
l.sort()
print(l)
ans=sum(l[0::2])
print(ans)

Failing test case input:
2
-12 1 2 -4

Expected output:
-11


Actual output:
[-12, -4, 1, 2]
-11


Fixed submission (verdict: Accepted):
n=int(input())
l=list(map(int,input().split()))
l.sort()
ans=sum(l[0::2])
print(ans)
Problem: p04047
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N=input("Enter No. of Servings :")
L=list(map(int,input("Enter skew Lengths").split()))


items=0


while(L):

	
	if L[0]<L[1] :
		s_lg=L[0]
		lg=L[1]
	else:
		s_lg=L[1]
		lg=L[0]

	
	if len(L)>2:
		for i in range(2,len(L)) :
			if L[i]>=lg:
				s_lg=lg
				lg=L[i]
			elif L[i]>=s_lg :
				s_lg=L[i]

	
	
	items=items+s_lg

	
	L.remove(s_lg)
	L.remove(lg)	

print(items)	

Failing test case input:
2
-2 -2 -66 2

Expected output:
-68


Actual output:
Enter No. of Servings :Enter skew Lengths-68


Fixed submission (verdict: Accepted):
N=input()
L=list(map(int,input().split()))

items=0

while(L):

	if L[0]<L[1] :
		s_lg=L[0]
		lg=L[1]
	else:
		s_lg=L[1]
		lg=L[0]

	if len(L)>2:
		for i in range(2,len(L)) :
			if L[i]>=lg:
				s_lg=lg
				lg=L[i]
			elif L[i]>=s_lg :
				s_lg=L[i]

	items=items+s_lg

	L.remove(s_lg)
	L.remove(lg)	

print(items)

Problem: p04047
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N=int(input())
L=list(map(int,input().split()))
L.sort(reverse=True)
print(sum(L[:N]))

Failing test case input:
5
101 2 0 -1 -1 0 -12 13 1 27

Expected output:
16


Actual output:
144


Fixed submission (verdict: Accepted):
N=int(input())
L=list(map(int,input().split()))
L.sort()
print(sum(L[0::2]))

Problem: p04047
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
m=0
n=int(input())
kushi= list(map(int,input().split()))
kushi.sort()
print(kushi)

if len(kushi) %2==1:
	del kushi[-1]

for i in range(0,len(kushi)-1,2):
	if kushi[i]>kushi[i+1]:
		m+=kushi[i+1]
	else:
		m+=kushi[i]
print(m)

Failing test case input:
5
001 7 1 1 1 0 0 5 0 3

Expected output:
7


Actual output:
[0, 0, 0, 1, 1, 1, 1, 3, 5, 7]
7


Fixed submission (verdict: Accepted):
m=0
n=int(input())
kushi= list(map(int,input().split()))
kushi.sort()

if len(kushi) %2==1:
	del kushi[-1]

for i in range(0,len(kushi)-1,2):
	if kushi[i]>kushi[i+1]:
		m+=kushi[i+1]
	else:
		m+=kushi[i]
print(m)

Problem: p04047
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
l=list(map(int,input().split()))
l.sort(reverse=1)
ans=0
for i in range(1,n,2):
  ans+=l[i]
print(ans)

Failing test case input:
2
-4 0 -36 1

Expected output:
-36


Actual output:
0


Fixed submission (verdict: Accepted):
n=int(input())
l=list(map(int,input().split()))
l.sort(reverse=1)
ans=0
for i in range(n):
  ans+=l[2*i+1]
print(ans)

Problem: p04047
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
 
arr = list(map(int, input().split()))

arr.sort()

res = 0
i=0

while i<n:
  res+=min(arr[i], arr[i+1])
  i+=2
  
print(res)


Failing test case input:
5
000 7 1 -1 4 2 6 16 -3 2

Expected output:
10


Actual output:
-1


Fixed submission (verdict: Accepted):
n = int(input())
 
arr = list(map(int, input().split()))

arr.sort()

res = 0
i=0
l = len(arr)
while i<l:
  res+=min(arr[i], arr[i+1])
  i+=2
  
print(res)
Problem: p04047
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
L = list(map(int, input().split()))

L.sort()
x = 0

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

print(x)



Failing test case input:
2
-2 -1 -13 0

Expected output:
-14


Actual output:
-13
-1
-14


Fixed submission (verdict: Accepted):
N = int(input())
L = list(map(int, input().split()))
 
L.sort()
x = 0
 
for i in range(0, 2*N, 2):
    x += L[i]
 
print(x)

Problem: p04047
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())*2
N -= 1
skewers = input().split()
skewers.sort()
total = 0
for i in range(0,N,2):
  total+=int(skewers[i])
print(total)

Failing test case input:
5
001 -1 14 -2 2 -2 3 0 8 2

Expected output:
8


Actual output:
3


Fixed submission (verdict: Accepted):
N = int(input())*2
N -= 1
inp = input()
skewers=[]
for num in inp.split():
    skewers.append(int(num))
skewers = sorted(skewers)
total = 0
for i in range(0,N,2):
  num = int(skewers[i])
  total+=num
print(total)

Problem: p04047
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
L = list(map(int,input().split()))
L.sort()
ans = 0
i = 0
while(i<N):
  ans += L[i]
  i += 2
print(ans)

Failing test case input:
5
010 0 1 0 -1 13 1 13 2 117

Expected output:
23


Actual output:
0


Fixed submission (verdict: Accepted):
N = int(input())
L = list(map(int,input().split()))
L.sort()
ans = 0
i = 0
while(i<2*N):
  ans += L[i]
  i += 2
print(ans)

Problem: p04047
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
tmp_lst = input().split()
length_lst = []
print(2*N)
for i in range(2*N):
    print(tmp_lst[i])
    length_lst.append(int(tmp_lst[i]))
length_lst.sort()

output = 0
for i in range(0, 2*N, 2):
    output += length_lst[i]

print(output)


Failing test case input:
5
001 7 1 1 1 0 0 5 0 3

Expected output:
7


Actual output:
10
001
7
1
1
1
0
0
5
0
3
7


Fixed submission (verdict: Accepted):
N = int(input())
tmp_lst = input().split()
length_lst = []

for i in range(2*N):

    length_lst.append(int(tmp_lst[i]))
length_lst.sort()
 
output = 0
for i in range(0, 2*N, 2):
    output += length_lst[i]
 
print(output)

Problem: p04047
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
L = list(map(int, input().split()))
ans = 0
L.sort()

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

Failing test case input:
2
-1 -5 1 0

Expected output:
-5


Actual output:
0
2
-5


Fixed submission (verdict: Accepted):
N = int(input())
L = list(map(int, input().split()))
ans = 0
L.sort()

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

Problem: p04047
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
x = sorted(list(map(int,input().split())))
cnt=0
for i in range(a-1):
  cnt += x[2*i]
print(cnt)

Failing test case input:
5
100 48 0 1 1 2 0 16 0 302

Expected output:
117


Actual output:
17


Fixed submission (verdict: Accepted):
a = int(input())
x = sorted(list(map(int,input().split())))
cnt=0
for i in range(a):
  cnt += x[2*i]
print(cnt)