ZhenlongDai/ACPR huggingface dataset:
Problem: p02682
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a, b, c, k = map(int, input().split())

ans = 0
if(k <= a):
    print(a)
elif(k <= a + b):
    print(a)
else:
    ans = k - (a + b)
    if(ans < c):
        print(a - ans)
    else:
        print(a - c)


Failing test case input:
4 3 4 3

Expected output:
3


Actual output:
4


Fixed submission (verdict: Accepted):
a, b, c, k = map(int, input().split())

ans = 0
if(k <= a):
    print(k)
elif(k <= a + b):
    print(a)
else:
    ans = k - (a + b)
    print(a - ans)

Problem: p02682
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a, b, c, k = list(map(int, input().split()))
if k<=b:
  print(k)
elif b<k<=b+a:
  print(b)
else:
  print(2*b-k+a)

Failing test case input:
0 3 10 8

Expected output:
-5


Actual output:
-2


Fixed submission (verdict: Accepted):
a, b, c, k = list(map(int, input().split()))
if k<=a:
  print(k)
elif a<k<=b+a:
  print(a)
else:
  print(2*a-k+b)

Problem: p02682
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a, b, c, k = map(int, input().split())

ans = 0

if k >= a:
    ans += a
else:
    ans += k

k = k-a-b

if k >= c:
    ans -= c
else:
    ans -= k

print(ans)


Failing test case input:
2 6 8 6

Expected output:
2


Actual output:
4


Fixed submission (verdict: Accepted):
a, b, c, k = map(int, input().split())

ans = 0

if a >= k:
    ans += k
else:
    ans += a

if k > a+b:
    ans -= k-a-b
    
print(ans)

Problem: p02682
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
A,B,C,K = map(int, input().split())

K -= A
if K > 0:
  K -= B
else:
  judge = A

if K > 0:
  judge = A - K
else:
    judge = A
    
print(judge)

Failing test case input:
10 2 4 8

Expected output:
8


Actual output:
10


Fixed submission (verdict: Accepted):
A,B,C,K = map(int, input().split())


if K - A> 0:
  if K - A - B > 0:
    print(A - (K-A-B))
  else:
    print(A)
else:
  print(K)

Problem: p02682
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
a,b,c,k = map(int,input().split())

ans=0

if a>= k:
  print(k)

elif a+b >= k:
  print(a)
  
else:
  print(a-(c-(k-a)))

Failing test case input:
-1 6 5 6

Expected output:
-2


Actual output:
1


Fixed submission (verdict: Accepted):
a,b,c,k = map(int,input().split())

ans=0

if a>= k:
  print(k)

elif a+b >= k:
  print(a)
  
else:
  print(a-((k-a-b)))

Problem: p02682
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,b,c,k = map(int,input().split())
if k<=a+b:
    print(a)
else:
    c = k-a-b
    print(int(a-c))

Failing test case input:
4 3 4 3

Expected output:
3


Actual output:
4


Fixed submission (verdict: Accepted):
a,b,c,k = map(int,input().split())
if k<=a+b:
    print(min(a,k))
else:
    c = k-a-b
    print(int(a-c))

Problem: p02682
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,b,c,k=map(int,input().split());count=0
if k<=a: print(k)
elif k<=a+b: print(a)
elif k<c: print(a-1*k)
else: print(a-1*c)

Failing test case input:
-2 3 5 5

Expected output:
-6


Actual output:
-7


Fixed submission (verdict: Accepted):
a,b,c,k=map(int,input().split());count=0
if k<=a: print(k)
elif k<=a+b: print(a)
else: print(a-(k-a-b))
Problem: p02682
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,b,c,k = map(int,input().split())
if k <= a :
  print(a)
elif k <= a+b:
  print(a)
else:
  print(((k-(a+b))*-1)+a)

Failing test case input:
4 2 1 2

Expected output:
2


Actual output:
4


Fixed submission (verdict: Accepted):
a,b,c,k = map(int,input().split())
if k ==0:
  print(k)
elif k <= a :
  print(k)
elif k <= a+b:
  print(a)
else:
  print(((k-(a+b))*-1)+a)

Problem: p02682
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
def main():
  A, B, C, K = map(int, input().split())
  if A >= K:
    print(A)
  elif A + B >= K:
    print(A)
  else:
  	print(A - (K - A - B))
main()

Failing test case input:
4 3 4 3

Expected output:
3


Actual output:
4


Fixed submission (verdict: Accepted):
def main():
  A, B, C, K = map(int, input().split())
  if A > K:
    print(K)
  elif A + B >= K:
    print(A)
  else:
  	print(A - (K - A - B))
main()

Problem: p02682
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import sys
import re
import math
import collections
import decimal
import bisect
import itertools
import fractions
import functools
import copy





sys.setrecursionlimit(10000001)
INF = sys.maxsize
MOD = 10 ** 9 + 7

ni = lambda: int(sys.stdin.readline())
ns = lambda: map(int, sys.stdin.readline().split())
na = lambda: list(map(int, sys.stdin.readline().split()))




def main():
    a, b, c, k = ns()
    if a + b < k:
        ans = a - (k - a - b)
    elif k > a:
        ans = a
    else:
        ans = a

    print(ans)


if __name__ == '__main__':
    main()


Failing test case input:
4 2 1 2

Expected output:
2


Actual output:
4


Fixed submission (verdict: Accepted):
import sys
import re
import math
import collections
import decimal
import bisect
import itertools
import fractions
import functools
import copy





sys.setrecursionlimit(10000001)
INF = sys.maxsize
MOD = 10 ** 9 + 7

ni = lambda: int(sys.stdin.readline())
ns = lambda: map(int, sys.stdin.readline().split())
na = lambda: list(map(int, sys.stdin.readline().split()))




def main():
    a, b, c, k = ns()
    t1 = max(k - a - b, 0)
    t2 = min(k, a)

    print(-t1 + t2)


if __name__ == '__main__':
    main()
Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = [0,4,8,12,16,20,24,28,32,36,40,44,48,52,56,60,64,68,72,76,80,84,88,92,96,100]
c = [0,7,14,21,28,35,42,49,56,63,70,77,84,91,98]
d = 0
if a < 4:
	print("No")
else:
	for i in range(len(b)):
		for j in range(len(c)):
			if b[i] + c[j] >= 101:
				break

			if b[i] + c[j] == a:
				print("Yes")
				d = 1
				break
		if d == 1:
			break
if d == 0:
	print("No")


Failing test case input:
-207

Expected output:
No


Actual output:
No
No


Fixed submission (verdict: Accepted):
a = int(input())
b = [0,4,8,12,16,20,24,28,32,36,40,44,48,52,56,60,64,68,72,76,80,84,88,92,96,100]
c = [0,7,14,21,28,35,42,49,56,63,70,77,84,91,98]
d = 0

for i in range(len(b)):
	for j in range(len(c)):
		if b[i] + c[j] == a:
			print("Yes")
			d = 1
			break
	if d == 1:
		break
if d == 0:
	print("No")

Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
if N % 4 == 0 or N % 7 == 0:
  ans = "Yes"
elif N == 0:
  ans = "No"
else:
  t = 0
  i = 1
  while t == 0:
    x = (N-7*i)/4
    if x == int(x):
      t += 1
    else:
      i += 1
  if t == 1:
    ans = "Yes"
  else:
    ans = "No"
print(ans)

Failing test case input:
-207

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
N = int(input())
t = 0
if N % 4 == 0 or N % 7 == 0:
  ans = "Yes"
else:
  t = 0
  for i in range(1,(N
    x = (N-7*i)/4
    if x == int(x):
      t += 1
    else:
      continue
  if t > 0:
    ans = "Yes"
  else:
    ans = "No"
print(ans)

Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
keep=0
for i in range(0,30):
  for j in range(0,30):
    if i*4+j+7==30:
      keep=1
if keep==1:
  print("Yes")
else:
  print("No")

Failing test case input:
-207

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
n=int(input())
keep=0
for i in range(0,30):
  for j in range(0,30):
    if i*4+j*7==n:
      keep=1
if keep==1:
  print("Yes")
else:
  print("No")

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

Failing test case input:
-226

Expected output:
No


Actual output:
0


Fixed submission (verdict: Accepted):
n=int(input())
cnt=0
for i in range(int(n/4)+1):
  for j in range(int(n/7)+1):
    if 4*i+7*j==n:
      cnt+=1
if cnt==0:
  print('No')
else:
  print('Yes')

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

for i in range(n+1):
  for j in range(n+1):
    if (4*i+7*j)==n:
      count += 1
      
print(count)

Failing test case input:
-226

Expected output:
No


Actual output:
0


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

for i in range(26):
  for j in range(26):
    if (4*i+7*j)==n:
      count += 1
if count == 0:
  print("No")
  
else:
  print("Yes")
Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def cal_ans(num):
    for num1 in range(25):
        for num2 in range(15):
            if num1 * 4 + num2 * 7 == num:
                return "yes"
    return "no"


if __name__ == '__main__':
    N = int(input())
    print(cal_ans(N))


Failing test case input:
-207

Expected output:
No


Actual output:
no


Fixed submission (verdict: Accepted):
def cal_ans(num):
    for num1 in range(25):
        for num2 in range(15):
            if num1 * 4 + num2 * 7 == num:
                return "Yes"
    return "No"


if __name__ == '__main__':
    N = int(input())
    print(cal_ans(N))

Problem: p03285
Buggy submission (Python (3.4.3), 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())

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

Problem: p03285
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
def main():
    n=int(input())
    for i in range(26):
        if (n - i*4) % 7 == 0:
            print("Yes")
            return
    print("No")
    
if __name__ == "__main__":
    main()

Failing test case input:
-207

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
def main():
    n=int(input())
    for i in range(26):
        if i*4 <= n and (n-i*4) % 7 == 0:
            print("Yes")
            return
    print("No")
    
if __name__ == "__main__":
    main()
Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N=int(input())

for i in range(30):
    for j in range(30-i):
        if (4*i)+(7*j) == N:
            print('Yes')


Failing test case input:
-226

Expected output:
No


Actual output:

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

for i in range(30):
    for j in range(30-i):
        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())
for i in range(20):
  if (n-7*i)%4==0:
    print("Yes")
    break
else:
  print("No")

Failing test case input:
-226

Expected output:
No


Actual output:
Yes


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

for i in range(20):
  if (n-7*i)<0:
    print("No")
    break
  elif (n-7*i)%4==0:
    print("Yes")
    break

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

Failing test case input:
-226

Expected output:
No


Actual output:
0


Fixed submission (verdict: Accepted):
n=int(input())
cnt=0
for i in range(int(n/4)+1):
  for j in range(int(n/7)+1):
    if 4*i+7*j==n:
      cnt+=1
if cnt==0:
  print('No')
else:
  print('Yes')

Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
if __name__ == "__main__":
    N = int(input())
    for x in range(0, 100):
        y = N - 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())
xm = n
ym = n
for x in range(xm+1):
    for y in range(ym+1):
        if 4*x+7*y == n:
            print('Yes')
            exit()

Failing test case input:
-226

Expected output:
No


Actual output:

Fixed submission (verdict: Accepted):
n = int(input())
xm = n
ym = n
for x in range(xm+1):
    for y in range(ym+1):
        if 4*x+7*y == n:
            print('Yes')
            exit()
print('No')

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




counter = 0
max = int(n/4)
for i in range(max):
  for ii in range(max):
    if(n == i*7 + ii*4):
      counter = counter +1
print(counter)

Failing test case input:
-207

Expected output:
No


Actual output:
0


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

counter = 0
max = 25
for i in range(max):
  for ii in range(max):
    if(n == i*7 + ii*4):
      counter = counter +1

if(counter >= 1):
  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")
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")

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())
for i in range(26):
    if (N-i*4)%7==0:
        print("Yes")
        exit()
print("No")

Failing test case input:
-207

Expected output:
No


Actual output:
Yes


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

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

for i in range(26):
  for j in range(26):
    if (4*i+7*j)==n:
      count += 1
      
print(count)

Failing test case input:
-207

Expected output:
No


Actual output:
0


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

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

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

Failing test case input:
-226

Expected output:
No


Actual output:

Fixed submission (verdict: Accepted):
a=int(input())
b=0
for i in range(26):
  for h in range(15):
    if i*4+h*7==a:
      b=b+1
if b==0:
  print("No")
else:
  print("Yes")

Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
count=0
for i in range(0,30):
  for j in range(0,30):
    if i*4+j+7==30:
      print("Yes")
      break
    count+=1
if count==900:
  print("No")

Failing test case input:
-207

Expected output:
No


Actual output:
Yes
Yes
Yes
Yes
Yes
Yes


Fixed submission (verdict: Accepted):
n=int(input())
keep=0
for i in range(0,30):
  for j in range(0,30):
    if i*4+j*7==n:
      keep=1
if keep==1:
  print("Yes")
else:
  print("No")
Problem: p03285
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
def resolve():
    
    n = int(input())
    
    
    
    
    
    
    
    

    max7 = n 
    max4 = n 

    cnt = 0
    for i in range(max7 + 1):
        for j in range(max4 + 1):
            if 7 *i + 4 *j == n:
                cnt += 1

    print(cnt)

resolve()

Failing test case input:
-226

Expected output:
No


Actual output:
0


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

    max7 = n 
    max4 = n 

    re = "No"
    for i in range(max7 + 1):
        for j in range(max4 + 1):
            if 7 *i + 4 *j == n:
                re = "Yes"

    print(re)


resolve()

Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
a = N
b = N
for i in range(a+1):
  for l in range(b+1):
    if 4*i+7*l == N:
      print("Yes")
      break
    else:
      print("No")
      break

Failing test case input:
-207

Expected output:
No


Actual output:

Fixed submission (verdict: Accepted):
N = int(input())
a = N
b = N
yes = 0
no = 0
for i in range(a+1):
  for l in range(b+1):
    if 4*i+7*l == N:
      yes = 1
    else:
      no = 1
if yes ==1:
  print("Yes")
else:
  print("No")

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

k = 'NO'

for a in range(int(n/4)+1):
	for b in range(int(n/7)+1):
		if 4*a + 7*b == n:
			k = 'YES'
			break

print(k)

Failing test case input:
-226

Expected output:
No


Actual output:
NO


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

ans = 'No'

a = 0
b = 0

for a in range(int(n/4)+1):
	for b in range(int(n/7)+1):
		if 4*a + 7*b == n:
			ans = 'Yes'
			break

print(ans)

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


Failing test case input:
-207

Expected output:
No


Actual output:
0


Fixed submission (verdict: Accepted):
N = int(input())
cnt = 0
for i in range(26):
    for j in range(16):
        if 4 * i + 7 * j == N:
            cnt += 1
if cnt > 0:
    print("Yes")
else:
    print("No")

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

Failing test case input:
-226

Expected output:
No


Actual output:
Yes


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

Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
while True:
  if n%4==0:
    print("YES")
    break
  n-=7
  if n<0:
    print("NO")
    break

Failing test case input:
-226

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
n=int(input())
while True:
  if n%4==0:
    print("Yes")
    break
  n-=7
  if n<0:
    print("No")
    break
Problem: p03285
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())
ans = "No"
if N%4==0:
    ans = "Yes"
for i in range(15) :
    N = N - 7
    if N%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"
if N%4==0:
    ans = "Yes"
for i in range(15) :
    N = N - 7
    if N < 0:
        break
    if N%4==0:
        ans = "Yes"
print(ans)

Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c = 4 * 7
n = int(input()) % c
i = n
while 0 < i:
    j = i
    while 0 < j:
        print(i, j)
        j -= 7
        if j == 0:
            print("Yes")
            exit()
    i -= 4
    if i == 0:
        print("Yes")
        exit()
print("No")


Failing test case input:
-226

Expected output:
No


Actual output:
26 26
26 19
26 12
26 5
22 22
22 15
22 8
22 1
18 18
18 11
18 4
14 14
14 7
Yes


Fixed submission (verdict: Accepted):
c = 4 * 7
n = int(input())
if n == c:
    print("Yes")
    exit()
m = n % c
i = n
while 0 < i:
    j = i
    while 0 < j:
        j -= 7
        if j == 0:
            print("Yes")
            exit()
    i -= 4
    if i == 0:
        print("Yes")
        exit()
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('Yes')
        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.4.3), verdict: Wrong Answer):
N = int(input())
print('Yes' if any(i * 4 + j * 7 for i in range(100) for j in range(100)) else 'No')

Failing test case input:
-207

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
N = int(input())
print('Yes' if any(i * 4 + j * 7 == N for i in range(100) for j in range(100)) else 'No')

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

divisors = [4+i*7 for i in range(4)]
bound_num = max(divisors)
n = int(input())
yes=[i*4 + j*7 for i in range(6) for j in range(6)]
if n >= bound_num or n in yes:
    print("Yes")
else:
    print("No")
    
print(yes)


Failing test case input:
-207

Expected output:
No


Actual output:
No
[0, 7, 14, 21, 28, 35, 4, 11, 18, 25, 32, 39, 8, 15, 22, 29, 36, 43, 12, 19, 26, 33, 40, 47, 16, 23, 30, 37, 44, 51, 20, 27, 34, 41, 48, 55]


Fixed submission (verdict: Accepted):

divisors = [4+i*7 for i in range(4)]
bound_num = max(divisors)
n = int(input())
yes=[i*4 + j*7 for i in range(6) for j in range(6)]
if n >= bound_num or n in yes:
    print("Yes")
else:
    print("No")
Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def calc(a):
  for a4 in range(26):
    for a7 in range(16):
      if a4*4+a7*7 == a:
        return "Yes"
  return "No"

if __name__ == '__main__':
  calc(int(input()))
      

Failing test case input:
-207

Expected output:
No


Actual output:

Fixed submission (verdict: Accepted):
def calc(a):
  for a4 in range(26):
    for a7 in range(16):
      if a4*4+a7*7 == a:
        return "Yes"
  return "No"

if __name__ == '__main__':
  print(calc(int(input())))

Problem: p03285
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())
flag = False
for i in range(101):
  a = (N - i*4) % 7
  if a == 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 i in range(101):
  if 4*i > N:
    break
  else:
    a = (N -i*4) % 7
    if a == 0:
      flag = True
      break
if flag:
  print("Yes")
else:
  print("No")

Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
a = N
b = N
for i in range(a+1):
  for l in range(b+1):
    if 4*i+7*l == 11:
      print("Yes")
      break
    else:
      print("No")
      break

Failing test case input:
-207

Expected output:
No


Actual output:

Fixed submission (verdict: Accepted):
N = int(input())
a = N
b = N
yes = 0
no = 0
for i in range(a+1):
  for l in range(b+1):
    if 4*i+7*l == N:
      yes = 1
    else:
      no = 1
if yes ==1:
  print("Yes")
else:
  print("No")
Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())

ans = 0

for i in range(26):
    for j in range(15):
        if i * 4 + j * 7 == N:
            ans += 1

if ans > 0:
    print('Yes')
else:
    print('NO')


Failing test case input:
-226

Expected output:
No


Actual output:
NO


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

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

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

for i in range(a):
    for j in range(a):
        sum=i*4+j*7
        if sum==a:
            answer+=1
print(answer)

Failing test case input:
-207

Expected output:
No


Actual output:
0


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

for i in range(a):
    for j in range(a):
        sum=i*4+j*7
        if sum==a:
            answer+=1
if answer>0:
    print("Yes")
else :
    print("No")

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

cnt =0

for i in range(26):
    for j in range(15):
        if i * 4 + j * 7 == n:
            cnt +=1
            if cnt >0:
                print('Yes')
                break
            else:
                print('No')

Failing test case input:
-226

Expected output:
No


Actual output:

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

Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys
N = int(input())
ans = 0
def dfs(n):
    print(n)
    if n == N:
        sys.exit()
    if n > N:
        return

    dfs(n+4)
    dfs(n+7)

dfs(0)
print('No')

Failing test case input:
-207

Expected output:
No


Actual output:
0
No


Fixed submission (verdict: Accepted):
import sys
N = int(input())
ans = 0
def dfs(n):
    if n == N:
        print('Yes')
        sys.exit()
    if n > N:
        return

    dfs(n+4)
    dfs(n+7)

dfs(0)
print('No')

Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
x = n 
y = n 
for i in range(x+1):
    for j in range(y+1):
        if i*7 + j*4 == n:
            print('YES')
            exit()
print('NO')


Failing test case input:
-226

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
n = int(input())
x = n 
y = n 
for i in range(x+1):
    for j in range(y+1):
        if i*7 + j*4 == n:
            print('Yes')
            exit()
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 i == 0 and j == 0:
            continue
        if N == i * 4 + j * 7:
            print("YES")
            exit()

print("NO")

Failing test case input:
-207

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.4.3), verdict: Wrong Answer):
def fits(N):
    answer = 'no'
    for cake in range(0,100,4):
        for donut in range(0,100,7):
            if cake + donut is N:
                answer = 'yes'
    return answer
if __name__ == '__main__':
    N = int(input())
    print(fits(N))

Failing test case input:
-207

Expected output:
No


Actual output:
no


Fixed submission (verdict: Accepted):
def fits(N):
    answer = 'No'
    for cake in range(0,100,4):
        for donut in range(0,100,7):
            if cake + donut is N:
                answer = 'Yes'
    return answer
if __name__ == '__main__':
    N = int(input())
    print(fits(N))

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


Failing test case input:
-207

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())
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):
N = int(input())
answer = "No"
cake = N
nut = N

for x in range(cake+1):
  for y in range(nut+1):
    if 4*x + 7*y == N:
      answer = "Yes"

Failing test case input:
-207

Expected output:
No


Actual output:

Fixed submission (verdict: Accepted):
N = int(input())
answer = "No"
cake = N
nut = N

for x in range(cake+1):
  for y in range(nut+1):
    if 4*x + 7*y == N:
      answer = "Yes"

print(answer)

Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n =int(input())
for i in range(1,16):
    if int(n%(i*7))%4==0:
        print("Yes")
        exit()
print("No")


Failing test case input:
-207

Expected output:
No


Actual output:
Yes


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

Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def solve():
    n = int(input())
    max_cake = n 
    max_donut = n 
    for c in range(max_cake + 1):
        for d in range(max_donut + 1):
            if n == 4 * c + 7 * d:
                return "Yes"
    return "No"


if __name__ == "__main__":
    solve()


Failing test case input:
-226

Expected output:
No


Actual output:

Fixed submission (verdict: Accepted):
def solve():
    n = int(input())
    max_cake = n 
    max_donut = n 
    for c in range(max_cake + 1):
        for d in range(max_donut + 1):
            if n == 4 * c + 7 * d:
                return "Yes"
    return "No"


if __name__ == "__main__":
    print(solve())

Problem: p03285
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
from math import ceil

N = int(input())
is_possible = False

for i in range(ceil(N/4)):
    for j in range(ceil(N/7)):
        if 4*i+7*j == N:
            is_possible = True

if is_possible:
    print("YES")
else:
    print("NO")

Failing test case input:
-207

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
from math import ceil

N = int(input())
is_possible = False

for i in range((N
    for j in range((N
        if 4*i+7*j == N:
            is_possible = True
            break
    if is_possible:
        break

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

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

c, d = 4, 7

def test(n):

    if n < 4:
        return False

    if n == 4 or n == 7:
        return True
    else:
        return test(n - 4) or test(n - 7)

Failing test case input:
-226

Expected output:
No


Actual output:

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

c, d = 4, 7

def test(n):

    if n < 4:
        return False

    if n == 4 or n == 7:
        return True
    else:
        return test(n - 4) or test(n - 7)
    
if test(N):
    print('Yes')
else:
    print('No')
Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
if n < 4:
    print("No")
c = [i for i in range(0,n+1) if i%4 == 0]
d = [j for j in range(0,n+1) if j%7 == 0]
for x in range(len(c)):
    for y in range(len(d)):
        if c[x] + d[y] == n:
            print("Yes")
            exit()
print("No")

Failing test case input:
-207

Expected output:
No


Actual output:
No
No


Fixed submission (verdict: Accepted):
n = int(input())
c = [i for i in range(0,n+1) if i%4 == 0]
d = [j for j in range(0,n+1) if j%7 == 0]
for x in range(len(c)):
    for y in range(len(d)):
        if c[x] + d[y] == n:
            print("Yes")
            exit()
print("No")

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

n = int(input())
 
count = 0
 
for x in range(0,n):
    for y in range(0,n):
        if x*4 + y*7 == n:
            count += 1

print("no") if count == 0 else print("Yes")

Failing test case input:
-226

Expected output:
No


Actual output:
no


Fixed submission (verdict: Accepted):

n = int(input())
 
count = 0

for x in range(0,n):
    for y in range(0,n):
        if x*4 + y*7 == n:
            count += 1

print("No") if count == 0 else print("Yes")

Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
if n == 3 or n==5 or n==9 or n==13:
    print("No")
else:
    print("Yes")

Failing test case input:
-226

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
n=int(input())
if n <= 3 or n==5 or n==6 or n==9 or n==10 or n==13 or n==17:
    print("No")
else:
    print("Yes")

Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
answer = "No"
cake = N
nut = N

for x in range(cake):
  for y in range(nut):
    if 4*x + 7*y == N:
      answer = "Yes"

Failing test case input:
-226

Expected output:
No


Actual output:

Fixed submission (verdict: Accepted):
N = int(input())
answer = "No"
cake = N
nut = N

for x in range(cake+1):
  for y in range(nut+1):
    if 4*x + 7*y == N:
      answer = "Yes"

print(answer)

Problem: p03285
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
N = int(input())

for i in range(26):
  if (N-i*4)% 7 == 0:
    print("Yes")
    exit()
print("No")

Failing test case input:
-207

Expected output:
No


Actual output:
Yes


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

for i in range(26):
  if (N-i*4)% 7 == 0 and N>= i*4:
    print("Yes")
    exit()
print("No")

Problem: p03285
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
ans = 0
for i in range(30):
    for j in range(20):
        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):
n = int(input())
ans = 0
for i in range(30):
    for j in range(20):
        if 4*i + 7*j == n :
            ans +=1 
if ans:
    print("Yes")
else:
    print("No")
Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
for i in range(n + 1, 4):
    if (n - i) % 7 == 0:
        print('Yes')
        exit()
print('No')

Failing test case input:
-207

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
n = int(input())
for i in range(0, n + 1, 4):
    if (n - i) % 7 == 0:
        print('Yes')
        exit()
print('No')

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

b = math.ceil(a/7)
c = math.floor(a/4)

for i in range(b,c+1):
    x = 7*i-a
    y = a-4*i
    if x%3==0 and y%3==0:
        print("Yes")
        break
    if i==c:
        print("No")

Failing test case input:
-207

Expected output:
No


Actual output:

Fixed submission (verdict: Accepted):
import math
import sys
a = int(input())

b = math.ceil(a/7)
c = math.floor(a/4)

for i in range(b,c+1):
    x = 7*i-a
    y = a-4*i
    if x%3==0 and y%3==0:
        print("Yes")
        sys.exit()
print("No")

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

donuts=N
ans="No"
for i in range(donuts,-1,-1):
  left_price=N-7*i
  if left_price%4==0:
    ans="Yes"
    break

    print(ans)
        

Failing test case input:
-226

Expected output:
No


Actual output:

Fixed submission (verdict: Accepted):
N=int(input())
 
donuts=N
ans="No"

for i in range(donuts,-1,-1):
  left_price=N-7*i
  if left_price%4==0:
    ans="Yes"
    break
 
print(ans)

Problem: p03285
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
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')

Failing test case input:
-226

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 x in range(N):
  for y in range(N):
    if 4*x+7*y == N:
      print('Yes')
    else:
      print('No')
      

Failing test case input:
-207

Expected output:
No


Actual output:

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.4.3), verdict: Wrong Answer):

N=int(input())
A=[4,8,12,16,20,24,7,14,21,11,19,25]
if N>=28:
    print('YES')
elif N in A:
    print('YES')
else:
    print('NO')

Failing test case input:
-207

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):

N=int(input())
A=[4,8,12,16,20,24,7,14,21,11,19,25,15,23,27]
if N>=28:
    print('Yes')
elif N in A:
    print('Yes')
else:
    print('No')
Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

N = int(input())
flag = False
for i in range(30):
    for j in range(30):
        if i*4 + j*7 == N:
            flag = True
if flag:
    print("YES")
else:
    print("NO") 

Failing test case input:
-207

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):

N = int(input())
flag = False
for i in range(30):
    for j in range(30):
        if i*4 + j*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())

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

Failing test case input:
-226

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):
import sys

N = int(input())

for i in range(N+1):
    for j in range(N+1):
        if N == 4*i+7*j:
            print ("Yes")
            sys.exit()
    
print("N0")

Failing test case input:
-207

Expected output:
No


Actual output:
N0


Fixed submission (verdict: Accepted):
import sys

N = int(input())

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

Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def abc105_b():
    n = int(input())
    for i in range(15):
        for j in range(26):
            if n == (i*7+j*4):
                return "YES"
    return "NO"


print(abc105_b())

Failing test case input:
-207

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
def abc105_b():
    n = int(input())
    for i in range(15):
        for j in range(26):
            if n == (i*7+j*4):
                return "Yes"
    return "No"


print(abc105_b())

Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
c = 4 * 7
n = int(input()) % c
i = n
while 0 < i:
    j = i
    while 0 < j:
        j -= 7
        if j == 0:
            print("Yes")
            exit()
    i -= 4
    if i == 0:
        print("Yes")
        exit()
print("No")


Failing test case input:
-226

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
c = 4 * 7
n = int(input())
if n == c:
    print("Yes")
    exit()
m = n % c
i = n
while 0 < i:
    j = i
    while 0 < j:
        j -= 7
        if j == 0:
            print("Yes")
            exit()
    i -= 4
    if i == 0:
        print("Yes")
        exit()
print("No")
Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N=int(input())
print(N)
costC=4
costD=7
Flag=False
for i in range(0,100):
    if Flag:
        break

    for j in range(0,100):
     
        costSum=i*costC+j*costD
        if N==costSum:
            Flag=True

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

Failing test case input:
-226

Expected output:
No


Actual output:
-226
No


Fixed submission (verdict: Accepted):
N=int(input())
costC=4
costD=7
Flag=False
for i in range(0,100):
    if Flag:
        break

    for j in range(0,100):
     
        costSum=i*costC+j*costD
        if N==costSum:
            Flag=True

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

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


Failing test case input:
-226

Expected output:
No


Actual output:
Yes


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

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

def fits(N):
    if N < 4:
        return 'no'
    else:
        for cake in range(0,100,4):
            for donut in range(0,100,7):
                if cake + donut is N:
                    return 'yes'
if __name__ == '__main__':
    N = int(input())
    print(fits(int(N)))

Failing test case input:
-226

Expected output:
No


Actual output:
no


Fixed submission (verdict: Accepted):
def fits(N):
    answer = 'No'
    for cake in range(0,100,4):
        for donut in range(0,100,7):
            if cake + donut is N:
                answer = 'Yes'
    return answer
if __name__ == '__main__':
    N = int(input())
    print(fits(N))

Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
ans='No'
for i in range(0,25):
    if (n-(i*4)) % 7 == 0:
        ans='Yes'
    if (n-(i*7)) % 4 == 0 and (n-(i*7)) > 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(0,25):
    for j in range(0,14):
        if n - (i*4) - (j*7) == 0:
            ans='Yes'
print(ans)

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

N = int(input())
str == 'No'
for i in range (math.floor( N/4 )+1):
    for j in range(math.floor(N/7)+1):
        if 4*i + 7*j == N:
            str = 'Yes'
print(str)

Failing test case input:
-207

Expected output:
No


Actual output:
<class 'str'>


Fixed submission (verdict: Accepted):
import math

N = int(input())
str = 'No'
for i in range (math.floor( N/4 )+1):
    for j in range(math.floor(N/7)+1):
        if 4*i + 7*j == N:
            str = 'Yes'
print(str)
Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def cal_ans(_N):
    for num1 in range(25):
        for num2 in range(15):
            if num1 * 4 + num2 * 7 == _N:
                return "yes"
    return "no"


if __name__ == '__main__':
    array = list(map(int, input().split()))
    N = array[0]
    print(cal_ans(N))


Failing test case input:
-207

Expected output:
No


Actual output:
no


Fixed submission (verdict: Accepted):
def cal_ans(num):
    for num1 in range(25):
        for num2 in range(15):
            if num1 * 4 + num2 * 7 == num:
                return "Yes"
    return "No"


if __name__ == '__main__':
    N = int(input())
    print(cal_ans(N))

Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
flag = True
while a > 7 and flag:
    if a % 4 == 0:
        print('YES')
        flag = False
    a -= 7
if flag:
    print('YES' if a == 4 or a == 7 else 'NO')

Failing test case input:
-207

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
a = int(input())
flag = True
while a > 7 and flag:
    if a % 4 == 0:
        print('Yes')
        flag = False
    a -= 7
if flag:
    print('Yes' if a == 4 or a == 7 else 'No')

Problem: p03285
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
count = 0
for cake in range(0,n+1,4):
    for donatsu in range(0,n+1,7):
        print("Yes") if cake+donatsu == n else print("No")


Failing test case input:
-226

Expected output:
No


Actual output:

Fixed submission (verdict: Accepted):
n = int(input())
count = 0
for cake in range(0,n+1,4):
    for donatsu in range(0,n+1,7):
        if donatsu + cake == n:
            count += 1
print("Yes") if count >= 1 else print("No")

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

b = math.ceil(a/7)
c = math.ceil(a/4)

for i in range(b,c+1):
    x = 7*i-a
    y = a-4*i
    if x%3==0 and y%3==0:
        print("Yes")
        break
    if i==c:
        print("No")

Failing test case input:
-207

Expected output:
No


Actual output:

Fixed submission (verdict: Accepted):
import math
import sys
a = int(input())

b = math.ceil(a/7)
c = math.floor(a/4)

for i in range(b,c+1):
    x = 7*i-a
    y = a-4*i
    if x%3==0 and y%3==0:
        print("Yes")
        sys.exit()
print("No")