ZhenlongDai/ACPR huggingface dataset:
Problem: p03005
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = list(map(int, input().split()))
if (s[1] == 1):
    ans = s[0] - s[1]
    print(ans)
else:
    print(0)

Failing test case input:
3 90

Expected output:
-87


Actual output:
0


Fixed submission (verdict: Accepted):
s = list(map(int, input().split()))
if (s[1] != 1):
    ans = s[0] - s[1]
    print(ans)
else:
    print(0)

Problem: p03005
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = input().split()

k = int(s[0])
n = int(s[1])

if n ==1 :
    print(0)
else:
    print(n-k)

Failing test case input:
-3 25

Expected output:
-28


Actual output:
28


Fixed submission (verdict: Accepted):
s = input().split()

n = int(s[0])
k = int(s[1])

if k==1 :
    print(0)
else:
    print(n-k)

Problem: p03005
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n, k = map(int, input().split())
ans = n-k if k > 1 else 0

Failing test case input:
106 3

Expected output:
103


Actual output:

Fixed submission (verdict: Accepted):
n, k = map(int, input().split())
ans = n-k if k > 1 else 0
print(ans)

Problem: p03005
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, K = map(int, input().split())

if K == 1:
  print(0)
else:
  print(N-K-1)
  

Failing test case input:
73 3

Expected output:
70


Actual output:
69


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

if K == 1:
  print(0)
else:
  print(N-K)

Problem: p03005
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
n, k = map(int, input().split())
must = k
rest = n - must
if n == 1:
    print(0)
else:
    print(rest)


Failing test case input:
1 351

Expected output:
-350


Actual output:
0


Fixed submission (verdict: Accepted):
n, k = map(int, input().split())
must = k
rest = n - must
if k == 1:
    print(0)
else:
    print(rest)

Problem: p03005
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N,K = map (int, input ().split ())
if N%K == 0:
  print (0)
else:
  print (1)

Failing test case input:
2 323

Expected output:
-321


Actual output:
1


Fixed submission (verdict: Accepted):
N,K = map (int, input ().split ())
if K == 1:
  print (0)
else:
  x = N-K
  print (x)

Problem: p03005
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,k = map(int,input().split())

a = n 

if a == 0:
  print(0)
else:
  print(1)

Failing test case input:
159 3

Expected output:
156


Actual output:
1


Fixed submission (verdict: Accepted):
n,k = map(int,input().split())
 
if k == 1:
  print(0)
elif n == k:
  print(0)
else:
  print(n-k)

Problem: p03005
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,k= map(int, input().split())
if n==1:
    print(0)
else:
    print(n-k)

Failing test case input:
1 477

Expected output:
-476


Actual output:
0


Fixed submission (verdict: Accepted):
n,k= map(int, input().split())
if k==1:
    print(0)
else:
    print(n-k)
Problem: p03005
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

import copy
import random
import bisect 
import fractions 
import math
import sys

mod = 10**9+7
sys.setrecursionlimit(mod) 


N,K = map(int,input().split())
if N == 1:
    ans = 0
else:
    ans = N-K
print(ans)


Failing test case input:
1 351

Expected output:
-350


Actual output:
0


Fixed submission (verdict: Accepted):

import copy
import random
import bisect 
import fractions 
import math
import sys

mod = 10**9+7
sys.setrecursionlimit(mod) 


N,K = map(int,input().split())
if K == 1:
    ans = 0
else:
    ans = N-K
print(ans)

Problem: p03005
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
n,k= map(int, input().split())
if n==1:
  print(0)
else:
  print(k-n)
  

Failing test case input:
2 218

Expected output:
-216


Actual output:
216


Fixed submission (verdict: Accepted):
n,k= map(int, input().split())
if k==1:
  print(0)
else:
  print(n-k)

Problem: p03005
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, K = map(int, input().split())
if N == 1:
    print(0)
else:
    print(N - K + 1 - 1)

Failing test case input:
1 477

Expected output:
-476


Actual output:
0


Fixed submission (verdict: Accepted):
N, K = map(int, input().split())
if K == 1:
    print(0)
else:
    print(N - K + 1 - 1)

Problem: p03005
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,k = map(int,input().split())
if n == 1:
    print(0)
elif n-k > 0:
    print(n-k)
else:
    print(0)

Failing test case input:
-4 17

Expected output:
-21


Actual output:
0


Fixed submission (verdict: Accepted):
n,k = map(int,input().split())
if k == 1:
    print(0)
else:
    print(n-k)

Problem: p03005
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,K= map(int, input().split())
if N == 1:
    print("0")
else:
    print(N - K)

Failing test case input:
1 477

Expected output:
-476


Actual output:
0


Fixed submission (verdict: Accepted):
N,K= map(int, input().split())
if K == 1:
    ans = 0
else:
    ans = N-K
print(ans)

Problem: p03005
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, K = (int(i) for i in input().split())

if K>=N:
    ans = 0
else:
    ans=N-K
print(ans)

Failing test case input:
3 90

Expected output:
-87


Actual output:
0


Fixed submission (verdict: Accepted):
N, K = (int(i) for i in input().split())

if K==1:
    ans=0
else:
    ans=N-K

print(ans)

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

n,k = input().split()
n,k = int(n), int(k)

if n==1 :
    print(0)
else :
    print(n-k)


Failing test case input:
1 477

Expected output:
-476


Actual output:
0


Fixed submission (verdict: Accepted):
import sys

n,k = input().split()
n,k = int(n), int(k)

if k==1 :
    print(0)
else :
    print(n-k)

Problem: p03005
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, K = map(int, input().split())
if N==1:
    print(0)
else:
    print(N-K)

Failing test case input:
1 477

Expected output:
-476


Actual output:
0


Fixed submission (verdict: Accepted):
N, K = map(int, input().split())
if K==1:
    print(0)
else:
    print(N-K)
Problem: p03005
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
n,k = map(int,input().split())
if n == 1:
    print(0)
else:
    print(n-k)


Failing test case input:
1 477

Expected output:
-476


Actual output:
0


Fixed submission (verdict: Accepted):
n,k = map(int,input().split())
if k == 1:
    print(0)
else:
    print(n-k)
Problem: p03149
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
num_list = list(map(int,input().split(' ')))
print(num_list)
if 1 in num_list and 9 in num_list and 7 in num_list and 4 in num_list:
    print("YES")
else:
    print("NO")

Failing test case input:
-1 4 2 -2

Expected output:
NO


Actual output:
[-1, 4, 2, -2]
NO


Fixed submission (verdict: Accepted):
num_list = list(map(int,input().split(' ')))

if 1 in num_list and 9 in num_list and 7 in num_list and 4 in num_list:
    print("YES")
else:
    print("NO")

Problem: p03149
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N =[int(n) for n in input().split(' ')]
 
M = [1, 9, 7, 4]
 
if set(N)==set(M):
    print("Yes")
else:
    print("No")

Failing test case input:
0 22 17 8

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
N =[int(n) for n in input().split(' ')]
 
M = [1, 9, 7, 4]
 
if set(N)==set(M):
    print("YES")
else:
    print("NO")

Problem: p03149
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
def main():
    a,b,c,d = map(int,input().split())

    if a+b+c+d == 21:
        print('YES')
    else:
        print('NO')

if __name__ == '__main__':
    main()


Failing test case input:
-1 0 -1 23

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
def main():
    num_list = list(map(int,input().split()))

    good_list = [1,4,7,9]

    num_list.sort()

    if num_list == good_list:
        print('YES')
    else:
        print('NO')

if __name__ == '__main__':
    main()

Problem: p03149
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=list(map(int,input().split()))
s=[1,9,4,7]
if n==s:
  print("YES")
else:
  print("NO")

Failing test case input:
1 7 9 4

Expected output:
YES

Actual output:
NO


Fixed submission (verdict: Accepted):
n=list(map(int,input().split()))
s=[1,9,4,7]
if set(n)==set(s):
  print("YES")
else:
  print("NO")

Problem: p03149
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = list(map(int, input().split()))
count_a = 0
count_b = 0
count_c = 0
count_d = 0

for i in range(4):
    if a[i] == 1:
        count_a += 1
    if a[i] == 4:
        count_b += 1
    if a[i] == 7:
        count_c += 1
    if a[i] == 9:
        count_d += 1

if count_a == 1 and count_b == 1 and count_c == 1 and count_d == 1:
    print('Yes')
else:
    print('No')

Failing test case input:
0 2 1 4

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
a = list(map(int, input().split()))
count_a = 0
count_b = 0
count_c = 0
count_d = 0

for i in range(4):
    if a[i] == 1:
        count_a += 1
    if a[i] == 4:
        count_b += 1
    if a[i] == 7:
        count_c += 1
    if a[i] == 9:
        count_d += 1

if count_a == 1 and count_b == 1 and count_c == 1 and count_d == 1:
    print('YES')
else:
    print('NO')
Problem: p03149
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

import sys

class YearNumberJudger:

    def __init__(self):
        self.input_num_list = []

    def input(self, num):
        self.input_num_list.append(num)

    def result(self):
        if len(self.input_num_list) != 4:
            return 'NO'
        input_map = {}
        for num in self.input_num_list:
            input_map[num] = True
        if '1' not in input_map:
            return 'NO'
        if '9' not in input_map:
            return 'NO'
        if '7' not in input_map:
            return 'NO'
        if '4' not in input_map:
            return 'NO'
        return 'YES'

if __name__ == "__main__":
    year_number_judger = YearNumberJudger()
    is_first_paramter = True
    for arg in sys.argv:
        if is_first_paramter:
            is_first_paramter = False
            continue
        year_number_judger.input(arg)
    print(year_number_judger.result())


Failing test case input:
1 9 7 4

Expected output:
YES

Actual output:
NO


Fixed submission (verdict: Accepted):

import sys

class YearNumberJudger:

    def __init__(self):
        self.input_num_list = []

    def input(self, num):
        self.input_num_list.append(num)

    def result(self):
        if len(self.input_num_list) != 4:
            return 'NO'
        input_map = {}
        for num in self.input_num_list:
            input_map[num] = True
        if 1 not in input_map:
            return 'NO'
        if 9 not in input_map:
            return 'NO'
        if 7 not in input_map:
            return 'NO'
        if 4 not in input_map:
            return 'NO'
        return 'YES'

year_number_judger = YearNumberJudger()
num_list = list(map(int,input().split()))

for num in num_list:
    year_number_judger.input(num)

print(year_number_judger.result())

Problem: p03149
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N_list = list(map(int, input().split()))
flag = False
if '1' in N_list:
    if '9' in N_list:
        if '7' in N_list:
            if '4' in N_list:
                flag=True
if flag:
    print('YES')
else:
    print('NO')

Failing test case input:
1 7 9 4

Expected output:
YES

Actual output:
NO


Fixed submission (verdict: Accepted):
N_list = list(map(int, input().split()))
flag = False
if 1 in N_list:
    if 9 in N_list:
        if 7 in N_list:
            if 4 in N_list:
                flag=True
if flag:
    print('YES')
else:
    print('NO')

Problem: p03149
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = input().split(" ")

print("YES" if set(n) == {1, 7, 9, 4} else "NO")

Failing test case input:
1 7 9 4

Expected output:
YES

Actual output:
NO


Fixed submission (verdict: Accepted):
n = input().split(" ")
 
print("YES" if set(n) == {"1", "7", "9", "4"} else "NO")
Problem: p03149
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
ans = [1,9,7,4]
N = list(map(int,input().split()))

flag = True
for n in N:
    if n not in ans:
        print('NO')
        flag =False
    else:
        ans.remove(n)
if flag:
    print('YES')

Failing test case input:
-1 10 1 -2

Expected output:
NO


Actual output:
NO
NO
NO


Fixed submission (verdict: Accepted):
ans = [1,9,7,4]
N = list(map(int,input().split()))

flag = True

for a in ans:
    if a in N:
        N.remove(a)
    else:
        flag = False

if flag:
    print('YES')
else:
    print('NO')

Problem: p03149
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=list(map(int, input().split()))+[1, 9, 7, 4]
if n.index(1)<4 and n.index(9)<4 and n.index(7)<4 and n.index(4)<4:
  print('Yes')
else:
  print('No')

Failing test case input:
1 9 13 4

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
n=list(map(int, input().split()))+[1, 9, 7, 4]
if n.index(1)<4 and n.index(9)<4 and n.index(7)<4 and n.index(4)<4:
  print('YES')
else:
  print('NO')

Problem: p03149
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c,d=map(int,input().split())
arr=[a,b,c,d]
if arr.count('1')==1 and arr.count('9')==1 and arr.count('7')==1 and arr.count('4')==1:
  print('YES')
else:
  print('NO')

Failing test case input:
1 9 7 4

Expected output:
YES

Actual output:
NO


Fixed submission (verdict: Accepted):
a,b,c,d=map(int,input().split())
arr=[a,b,c,d]
if (arr.count(1)==1 and arr.count(9)==1) and (arr.count(7)==1 and arr.count(4)==1):
  print('YES')
else:
  print('NO')

Problem: p03149
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = list(map(int, input().split()))

for i in range(len(n)):
  if n[i] == 1:
    n[i] = 0
  elif n[i] == 7:
    n[i] = 0
  elif n[i] == 9:
    n[i] = 0
  elif n[i] == 4:
    n[i] = 0
    
if sum(n) == 0:
  print("YES")
else:
  print("NO")

Failing test case input:
-1 3 4 -2

Expected output:
NO


Actual output:
YES


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

for i in range(len(n)):
  if n[i] == 1:
    n[i] = 1
  elif n[i] == 7:
    n[i] = 10
  elif n[i] == 9:
    n[i] = 100
  elif n[i] == 4:
    n[i] = 1000
    
if sum(n) == 1111:
  print("YES")
else:
  print("NO")

Problem: p03149
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print("YES" if "" == str(input()).replace(" ", "").replace("1", "", 1).replace("9", "", 1).replace("7", "", 1).replace("4", "", 1) else "No")

Failing test case input:
0 1 -1 26

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
print("YES" if "" == str(input()).replace(" ", "").replace("1", "", 1).replace("9", "", 1).replace("7", "", 1).replace("4", "", 1) else "NO")
Problem: p03149
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys

num = input()

num1 = num[0]
num2 = num[1]
num3 = num[2]
num4 = num[3]

strTarget = "1974"

isValidation1 = num1 in strTarget

if isValidation1 :
    strTarget.replace(num1,"")
else:
    print("NO")
    sys.exit()

isValidation2 = num2 in strTarget
if isValidation2 :
    strTarget.replace(num2,"")
else:
    print("NO")
    sys.exit()

isValidation3 = num3 in strTarget
if isValidation3 :
    strTarget.replace(num3,"")
else:
    print("NO")
    sys.exit()

isValidation4 = num4 in strTarget
if isValidation4 :
    strTarget.replace(num4,"")
else:
    print("NO")
    sys.exit()

print("YES")


Failing test case input:
1 7 9 4

Expected output:
YES

Actual output:
NO


Fixed submission (verdict: Accepted):
import sys








num1, num2, num3, num4 = (int(i) for i in input().split())

num1 = str(num1)
num2 = str(num2)
num3 = str(num3)
num4 = str(num4)


strTarget = "1974"
isCheck1 = False
isCheck2 = False
isCheck3 = False
isCheck4 = False

isValidation1 = num1 in strTarget
if isValidation1 :
    strTarget = strTarget.replace(num1,"")
    isCheck1 = True

isValidation2 = num2 in strTarget
if isValidation2 :
    strTarget = strTarget.replace(num2,"")
    isCheck2 = True

isValidation3 = num3 in strTarget
if isValidation3 :
    strTarget = strTarget.replace(num3,"")
    isCheck3 = True

isValidation4 = num4 in strTarget
if isValidation4 :
    strTarget = strTarget.replace(num4,"")
    isCheck4 = True

if isCheck1 and isCheck2 and isCheck3 and isCheck4:
    print("YES")
else:
    print("NO")

Problem: p03149
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print('YES' if input().split().sort()==['1','4','7','9'] else 'NO')

Failing test case input:
1 9 7 4

Expected output:
YES

Actual output:
NO


Fixed submission (verdict: Accepted):
print('YES' if sorted(input().split())==['1','4','7','9'] else 'NO')

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

if N==[1,4,7,9]:
    print('YES')
else:
    print('No')

Failing test case input:
1 4 1 12

Expected output:
NO


Actual output:
No


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

if N==[1,4,7,9]:
    print('YES')
else:
    print('NO')

Problem: p03149
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def data_input():
    a,b,c,d = input().split(' ')
    return (a,b,c,d)
def answer():
    a,b,c,d = data_input()
    s = '1974'
    s = s.replace(a,'').replace(b,'').replace(c,'').replace(d,'')
    if len(s) == 0:
      print('YES')
    print('NO')
answer()

Failing test case input:
1 9 7 4

Expected output:
YES

Actual output:
YES
NO


Fixed submission (verdict: Accepted):
def data_input():
    a,b,c,d = input().split(' ')
    return (a,b,c,d)
def answer():
    a,b,c,d = data_input()
    s = '1974'
    s = s.replace(a,'').replace(b,'').replace(c,'').replace(d,'')
    if len(s) == 0:
        print('YES')
    else:
        print('NO')
answer()
Problem: p03149
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S=input().split()
if "1" and "7" and "9" and "4" in S:
  print("YES")
else:
  print('NO')


Failing test case input:
-1 3 4 -2

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
S=input().split()
if ("1" in S) and ("9" in S) and ("7" in S) and ("4" in S):
  print("YES")
else:
  print('NO')

Problem: p03149
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=set(map(str,input().split()))
k={'1','9','7','4'}
if n==k:
    print('Yes')
else:
    print('No')

Failing test case input:
0 2 0 0

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
n=set(map(str,input().split()))
k={'1','9','7','4'}
if n==k:
    print('YES')
else:
    print('NO')

Problem: p03149
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A=list(input().split())
if (1 in A)and(9 in A)and(7 in A)and(4 in A):
  print("YES")
else:
  print("NO")

Failing test case input:
1 7 9 4

Expected output:
YES

Actual output:
NO


Fixed submission (verdict: Accepted):
A=list(input().split())
A=sorted(A)
A=[int(s)for s in A]
if A==[1,4,7,9]:
  print("YES")
else:
  print("NO")

Problem: p03149
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S=input().split()
print(S)
if "1" and "7" and "9" and "4" in S:
  print("Yes")
else:
  print('No')

Failing test case input:
1 15 11 4

Expected output:
NO


Actual output:
['1', '15', '11', '4']
Yes


Fixed submission (verdict: Accepted):
S=input().split()
if ("1" in S) and ("9" in S) and ("7" in S) and ("4" in S):
  print("YES")
else:
  print('NO')

Problem: p03149
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A = map(int,input().split())
if 1 in A and 9 in A and 7 in A and 4 in A:
  print('YES')
else:
  print('NO')

Failing test case input:
1 7 9 4

Expected output:
YES

Actual output:
NO


Fixed submission (verdict: Accepted):
A = list(map(int,input().split()))
if 1 in A and 9 in A and 7 in A and 4 in A:
  print('YES')
else:
  print('NO')

Problem: p03149
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def main():
    nums = input().split()

    if nums.count('1') == 1 and nums.count('1') == 1 and nums.count('1') == 1 and nums.count('1') == 1:
        print('YES')
    else:
        print('NO')

    return

main()

Failing test case input:
1 0 4 2

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
def main():
    nums = input().split()

    if nums.count('1') == 1 and nums.count('9') == 1 and nums.count('7') == 1 and nums.count('4') == 1:
        print('YES')
    else:
        print('NO')

    return

main()

Problem: p03149
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
i = input()
set_1 = set(i)
if set_1 == {"1", "9", "7", "4"}:
    print("YES")
else:
    print("NO")

Failing test case input:
1 7 9 4

Expected output:
YES

Actual output:
NO


Fixed submission (verdict: Accepted):
i = input().split(" ")
set_1 = set(i)
if set_1 == {"1", "9", "7", "4"}:
    print("YES")
else:
    print("NO")
Problem: p03149
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
clist = list(map(int,input().split()))
clist.sort()
if clist == [1,4,7,9] :
  print("Yes")
else:
  print("No")

Failing test case input:
0 1 -1 24

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
clist = list(map(int,input().split()))
clist.sort()
if clist == [1,4,7,9] :
  print("YES")
else:
  print("NO")

Problem: p03149
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
print('YNeos'[sorted(input().split())!=['1','4','7','9']::2])

Failing test case input:
2 1 1 2

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
print('YNEOS'[sorted(input().split())!=['1','4','7','9']::2])

Problem: p03149
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A = list(map(int, input().split()))
A1 = A.count("1")
A9 = A.count("9")
A7 = A.count("7")
A4 = A.count("4")
if A1 == 1 and A9 == 1 and A7 == 1 and A4 == 1:
  print("YES")
else:
  print("NO")

Failing test case input:
1 9 7 4

Expected output:
YES

Actual output:
NO


Fixed submission (verdict: Accepted):
A = list(map(int, input().split()))
A1 = A.count(1)
A9 = A.count(9)
A7 = A.count(7)
A4 = A.count(4)
if A1 == A9 == A7 == A4 == 1:
  print("YES")
else:
  print("NO")

Problem: p03149
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=list(input().split())
a.sort()
b=[1,7,9,4]
if a==b:
  print('YES')
else: print('NO')

Failing test case input:
1 7 9 4

Expected output:
YES

Actual output:
NO


Fixed submission (verdict: Accepted):
a=list(map(int,input().split()))
a.sort()
if a==[1,4,7,9]:
  print('YES')
else: print('NO')

Problem: p03149
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print("YNeos"["".join(sorted(list(input())))!="1479"::2])

Failing test case input:
1 3 3 1

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
print("YNEOS"["".join(sorted(list(input().split())))!="1479"::2])

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




n = [0, 0, 0, 0]
val = [1, 9, 7, 4]
valflg = [0, 0, 0, 0]

n[0], n[1], n[2], n[3] = map(int,input().split())

for idx in range(4):
    for idx2 in range(4):
        if n[idx] == val[idx2]:
            valflg[idx2] = 1

if valflg[0] + valflg[1] + valflg[2] + valflg[3] == 4:
    ans = "Yes"
else:
    ans = "No"
    

print(ans)


Failing test case input:
1 1 1 2

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):


 

n = [0, 0, 0, 0]
val = [1, 9, 7, 4]
valflg = [0, 0, 0, 0]
 
n[0], n[1], n[2], n[3] = map(int,input().split())
 
for idx in range(4):
    for idx2 in range(4):
        if n[idx] == val[idx2]:
            valflg[idx2] = 1
 
if valflg[0] + valflg[1] + valflg[2] + valflg[3] == 4:
    ans = "YES"
else:
    ans = "NO"
    

print(ans)
Problem: p03149
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
l = list(map(int,input().split()))
if (1 in l) and (4 in l) and (7 in l) and (9 in l):
  print("Yes")
else:
  print("No")

Failing test case input:
0 24 17 8

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
l = list(map(int,input().split()))
if (1 in l) and (4 in l) and (7 in l) and (9 in l):
  print("YES")
else:
  print("NO")

Problem: p03149
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
get=input()
flg=0
for a in get.split():
  if int(a) in[1,9,7,4]:
    flg=+1
    
if flg==4:
  print("YES")
else:
  print("NO")

Failing test case input:
1 9 7 4

Expected output:
YES

Actual output:
NO


Fixed submission (verdict: Accepted):
get=input()
get = get.split(" ")
flg=0
get=list(set(get))
for a in get:
  if int(a) in[1,9,7,4]:
    flg+=1
    
if flg==4:
  print("YES")
else:
  print("NO")

Problem: p03149
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N=list(map(int,input().split()))
if(N.count(1)==1 and N.count(9)==1 and N.count(7)==1 and N.count(4)==1):
  print("Yes")
else:
  print("No")

Failing test case input:
1 9 13 0

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
N=list(map(int,input().split()))
if(N.count(1)==1 and N.count(9)==1 and N.count(7)==1 and N.count(4)==1):
  print("YES")
else:
  print("NO")

Problem: p03149
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def data_input():
    a,b,c,d = input().split(' ')
    return (a,b,c,d)
def answer():
    a,b,c,d = data_input()
    s = '1974'
    s = s.replace(a,'').replace(b,'').replace(c,'').replace(d,'')
    if len(s) == 0:
      return True
    return False
print(answer())

Failing test case input:
0 1 -1 23

Expected output:
NO


Actual output:
False


Fixed submission (verdict: Accepted):
def data_input():
    a,b,c,d = input().split(' ')
    return (a,b,c,d)
def answer():
    a,b,c,d = data_input()
    s = '1974'
    s = s.replace(a,'').replace(b,'').replace(c,'').replace(d,'')
    if len(s) == 0:
        print('YES')
    else:
        print('NO')
answer()

Problem: p03149
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n= map(int,input().split())
if 1 in n and 7 in n and 9 in n and 4 in n:
  print("YES")
else:
  print("NO")

Failing test case input:
1 9 7 4

Expected output:
YES

Actual output:
NO


Fixed submission (verdict: Accepted):
n= list(map(int,input().split()))
n.sort()
if 1 in n and 7 in n and 9 in n and 4 in n:
  print("YES")
else:
  print("NO")

Problem: p03149
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
import sys
if sys.platform =='ios':
	sys.stdin=open('input.txt')
	
l = list(map(int,input().split()))

l.sort()

print(''.join(list(map(str, l))))

if ''.join(list(map(str, l)))=='1479':
	print('YES')
else:
	print('No')

Failing test case input:
1 0 3 2

Expected output:
NO


Actual output:
0123
No


Fixed submission (verdict: Accepted):
import sys
if sys.platform =='ios':
	sys.stdin=open('input.txt')

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

l.sort()



if ''.join(list(map(str, l)))=='1479':
	print('YES')
else:
	print('NO')
Problem: p03149
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def data_input():
    a,b,c,d = input().split(' ')
    return (a,b,c,d)
def answer():
    a,b,c,d = data_input()
    s = '1974'
    s.replace(a,'')
    s.replace(b,'')
    s.replace(c,'')
    s.replace(d,'')
    if len(s) == 0:
      return True
    return False
answer()

Failing test case input:
0 2 -2 0

Expected output:
NO


Actual output:

Fixed submission (verdict: Accepted):
def data_input():
    a,b,c,d = input().split(' ')
    return (a,b,c,d)
def answer():
    a,b,c,d = data_input()
    s = '1974'
    s = s.replace(a,'').replace(b,'').replace(c,'').replace(d,'')
    if len(s) == 0:
        print('YES')
    else:
        print('NO')
answer()

Problem: p03149
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = list(map(int,input().split()))
N.sort()
print("Yes" if N[0]*1000+N[1]*100+N[2]*10+N[3] == 1974 else "No")

Failing test case input:
2 19 0 1

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
N = list(map(int,input().split()))
N.sort()
print("YES" if N[0]*1000+N[1]*100+N[2]*10+N[3] == 1479 else "NO")

Problem: p03149
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
print("YNeos"["".join(sorted(input()))!="1479"::2])

Failing test case input:
1 19 0 1

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
print("YNEOS"["".join(sorted(input().split()))!="1479"::2])

Problem: p03149
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c,d=map(int,input().split())
arr=[a,b,c,d]
if (arr.count('1')==1 and arr.count('9')==1) and (arr.count('7')==1 and arr.count('4')==1):
  print('YES')
else:
  print('NO')

Failing test case input:
1 7 9 4

Expected output:
YES

Actual output:
NO


Fixed submission (verdict: Accepted):
a,b,c,d=map(int,input().split())
arr=[a,b,c,d]
if (arr.count(1)==1 and arr.count(9)==1) and (arr.count(7)==1 and arr.count(4)==1):
  print('YES')
else:
  print('NO')

Problem: p03149
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
l = sorted(list(map(int,input().split())))

if l == [1, 4, 7, 9]:
  print('Yes')
else:
  print('No')

Failing test case input:
-1 2 13 -1

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
l = sorted(list(map(int,input().split())))

if l == [1, 4, 7, 9]:
  print('YES')
else:
  print('NO')

Problem: p03149
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = list(map(int, input().split()))
x1 = 0
x9 = 0
x7 = 0
x4 = 0

for i in range(4):
  if n[i] == 1:
    x1 += 1
  if n[i] == 9:
    x9 += 1
  if n[i] == 7:
    x7 += 1
  if n[i] == 4:
    x4 += 1

if max(x1, x9, x7, x4) == 1:
  print("YES")
else:
  print("NO")

Failing test case input:
0 19 3 4

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
n = list(map(int, input().split()))
x1 = 0
x9 = 0
x7 = 0
x4 = 0

for i in range(4):
  if n[i] == 1:
    x1 += 1
  if n[i] == 9:
    x9 += 1
  if n[i] == 7:
    x7 += 1
  if n[i] == 4:
    x4 += 1

if min(x1, x9, x7, x4) == 1:
  print("YES")
else:
  print("NO")
Problem: p03149
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = list(map(int,input().split()))
answer = 'No'
if 1 in N:
    if 9 in N:
        if 4 in N:
            if 7 in N:
                answer = "Yes"
print(answer)


Failing test case input:
0 1 -1 26

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
N = list(map(int,input().split()))
answer = 'NO'
if 1 in N:
    if 9 in N:
        if 4 in N:
            if 7 in N:
                answer = "YES"
print(answer)

Problem: p03149
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = list(map(int,input().split()))
ncheck = [1, 7, 9, 4]

flag = 'YES'
for c in ncheck:
    if not c in n:
        flag = 'No'

print(flag)


Failing test case input:
1 4 0 12

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
n = list(map(int,input().split()))
ncheck = [1, 7, 9, 4]

flag = 'YES'
for c in ncheck:
    if not c in n:
        flag = 'NO'


print(flag)

Problem: p03149
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
li = list(map(int, input().split()))
print(li)
if 1 in li and 9 in li and 7 in li and 4 in li:
    print('YES')
else:
    print('NO')

Failing test case input:
1 7 9 4

Expected output:
YES

Actual output:
[1, 7, 9, 4]
YES


Fixed submission (verdict: Accepted):
li = list(map(int, input().split()))
if 1 in li and 9 in li and 7 in li and 4 in li:
    print('YES')
else:
    print('NO')

Problem: p03149
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print("YES" if sorted(input()) == list("1479") else "NO")

Failing test case input:
1 9 7 4

Expected output:
YES

Actual output:
NO


Fixed submission (verdict: Accepted):
print("YES" if sorted(input().split()) == list("1479") else "NO")

Problem: p03149
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
l = list(map(int, input().split()))
list = [1, 4, 7, 9]
flg = True
for num in list:
  if(num in l):    
    pass
  else:
    print(num)
    flg = False
if(flg):
	print("YES")
else:
    print("NO")

Failing test case input:
0 1 -1 23

Expected output:
NO


Actual output:
4
7
9
NO


Fixed submission (verdict: Accepted):
l = list(map(int, input().split()))
list = [1, 4, 7, 9]
flg = True
for num in list:
  if(num in l):    
    pass
  else:
    flg = False
if(flg):
	print("YES")
else:
    print("NO")

Problem: p03149
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = list(map(int, input().split()))
print("Yes" if 1 in N and 9 in N and 7 in N and 4 in N else "No")

Failing test case input:
2 15 15 4

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
N = list(map(int, input().split()))
print("YES" if len(set(N)) == 4 and 1 in N and 9 in N and 7 in N and 4 in N else "NO")

Problem: p03149
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = list(map(int, input().split()))
if 1 in n and 9 in n and 7 in n and 4 in n: print('Yes')
else: print('No')

Failing test case input:
2 15 15 4

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
n = list(map(int, input().split()))
if 1 in n and 9 in n and 7 in n and 4 in n: print('YES')
else: print('NO')
Problem: p03149
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = map(int,input().rstrip().split())
x = 0
if 1 in N:
  x = x + 1
if 9 in N:
  x = x + 1
if 7 in N:
  x = x + 1
if 4 in N:
  x = x + 1
if x == 4:
  print('YES')
else:
  print('NO')

Failing test case input:
1 7 9 4

Expected output:
YES

Actual output:
NO


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

x = 0
if 1 in N:
  x = x + 1
if 9 in N:
  x = x + 1
if 7 in N:
  x = x + 1
if 4 in N:
  x = x + 1
if x == 4:
  print('YES')
else:
  print('NO')

Problem: p03149
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = list(map(int, input().split()))

print('Yes' if 1 in N and 4 in N and 7 in N and 9 in N else 'No')


Failing test case input:
3 9 0 13

Expected output:
NO


Actual output:
No


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

print('YES' if 1 in N and 4 in N and 7 in N and 9 in N else 'NO')

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

num = input()

num1 = num[0]
num2 = num[1]
num3 = num[2]
num4 = num[3]

strTarget = "1974"
isCheck1 = False
isCheck2 = False
isCheck3 = False
isCheck4 = False

isValidation1 = num1 in strTarget
if isValidation1 :
    strTarget.replace(num1,"")
    isCheck1 = True

isValidation2 = num2 in strTarget
if isValidation2 :
    strTarget.replace(num2,"")
    isCheck2 = True

isValidation3 = num3 in strTarget
if isValidation3 :
    strTarget.replace(num3,"")
    isCheck3 = True

isValidation4 = num4 in strTarget
if isValidation4 :
    strTarget.replace(num4,"")
    isCheck4 = True

if isCheck1 and isCheck2 and isCheck3 and isCheck4:
    print("YES")
else:
    print("NO")


Failing test case input:
1 9 7 4

Expected output:
YES

Actual output:
NO


Fixed submission (verdict: Accepted):
import sys








num1, num2, num3, num4 = (int(i) for i in input().split())

num1 = str(num1)
num2 = str(num2)
num3 = str(num3)
num4 = str(num4)


strTarget = "1974"
isCheck1 = False
isCheck2 = False
isCheck3 = False
isCheck4 = False

isValidation1 = num1 in strTarget
if isValidation1 :
    strTarget = strTarget.replace(num1,"")
    isCheck1 = True

isValidation2 = num2 in strTarget
if isValidation2 :
    strTarget = strTarget.replace(num2,"")
    isCheck2 = True

isValidation3 = num3 in strTarget
if isValidation3 :
    strTarget = strTarget.replace(num3,"")
    isCheck3 = True

isValidation4 = num4 in strTarget
if isValidation4 :
    strTarget = strTarget.replace(num4,"")
    isCheck4 = True

if isCheck1 and isCheck2 and isCheck3 and isCheck4:
    print("YES")
else:
    print("NO")

Problem: p03149
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
var = list(map(int,input().split()))
var.sort()
print("Yes" if var == [1,4,7,9] else "No")
           

Failing test case input:
1 3 13 0

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):

a = list(map(int,input().split()))
a.sort()
print("YES" if a == [1,4,7,9] else "NO")
Problem: p03149
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def checkInput(inputList):
    a = 0
    b = 0
    c = 0
    d = 0
    for num in inputList:
        if(num == 1):
            a = 1
        elif(num == 9):
            b = 1
        elif(num == 7):
            c = 1
        elif(num == 4):
            d = 1
    if(a == 1 and b == 1 and c == 1 and d == 1):
        return True
    else:
        return False

if __name__ == '__main__':
    inp = list(map(int,input().split()))
    if(checkInput(inp)):
        print("Yes")
    else:
        print("No")


Failing test case input:
0 3 1 8

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
def checkInput(inputList):
    a = 0
    b = 0
    c = 0
    d = 0
    for num in inputList:
        if(num == 1):
            a = 1
        elif(num == 9):
            b = 1
        elif(num == 7):
            c = 1
        elif(num == 4):
            d = 1
    if(a == 1 and b == 1 and c == 1 and d == 1):
        return True
    else:
        return False

if __name__ == '__main__':
    inp = list(map(int,input().split()))
    if(checkInput(inp)):
        print("YES")
    else:
        print("NO")

Problem: p03149
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = list(map(int, input().split()))
n.sort()
if n[0] + n[1] + n[2] + n[3] == 1479:
    print('YES')
else:print('NO')

Failing test case input:
1 7 9 4

Expected output:
YES

Actual output:
NO


Fixed submission (verdict: Accepted):
n = input().split()
n.sort()
if n[0] + n[1] + n[2] + n[3] == '1479':
    print('YES')
else:print('NO')

Problem: p03149
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def data_input():
    a,b,c,d = input().split(' ')
    return (a,b,c,d)
def answer():
    a,b,c,d = data_input()
    s = '1974'
    s = s.replace(a,'').replace(b,'').replace(c,'').replace(d,'')
    print(s)
    if len(s) == 0:
        print('YES')
    else:
        print('NO')
answer()

Failing test case input:
-1 1 -1 24

Expected output:
NO


Actual output:
974
NO


Fixed submission (verdict: Accepted):
def data_input():
    a,b,c,d = input().split(' ')
    return (a,b,c,d)
def answer():
    a,b,c,d = data_input()
    s = '1974'
    s = s.replace(a,'').replace(b,'').replace(c,'').replace(d,'')
    if len(s) == 0:
        print('YES')
    else:
        print('NO')
answer()

Problem: p03149
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
l = map(int, input().split())
list = [1, 4, 7, 9]
flg = True
for num in list:
  if(num not in l):
    print("NO")
    flg = False
    break
if(flg):
	print("YES")

Failing test case input:
1 7 9 4

Expected output:
YES

Actual output:
NO


Fixed submission (verdict: Accepted):
l = list(map(int, input().split()))
list = [1, 4, 7, 9]
flg = True
for num in list:
  if(num in l):    
    pass
  else:
    flg = False
if(flg):
	print("YES")
else:
    print("NO")
Problem: p03149
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
str_input_list = input().rstrip().split(' ')
int_input_list = []
for a in str_input_list:
    int_input_list.append(int(a))

print(int_input_list)
    
keyence_list = [1, 9, 7, 4]

print(keyence_list)

for a in range(4):
    if keyence_list[a] in int_input_list:
        keyence_list[a] = '*'

print(keyence_list)

if keyence_list == ['*', '*', '*', '*']:
    print('YES')
else:
    print('NO')

Failing test case input:
1 9 13 0

Expected output:
NO


Actual output:
[1, 9, 13, 0]
[1, 9, 7, 4]
['*', '*', 7, 4]
NO


Fixed submission (verdict: Accepted):
str_input_list = input().rstrip().split(' ')
int_input_list = []
for a in str_input_list:
    int_input_list.append(int(a))
    
keyence_list = [1, 9, 7, 4]

for a in range(4):
    if keyence_list[a] in int_input_list:
        keyence_list[a] = '*'

if keyence_list == ['*', '*', '*', '*']:
    print('YES')
else:
    print('NO')

Problem: p03149
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = list(input().split(" "))
if 1 in n and 9 in n and 7 in n and 4 in n:
  print("YES")
else:
  print("NO")

Failing test case input:
1 9 7 4

Expected output:
YES

Actual output:
NO


Fixed submission (verdict: Accepted):
n= list(map(int,input().split()))
n.sort()
if 1 in n and 7 in n and 9 in n and 4 in n:
  print("YES")
else:
  print("NO")

Problem: p03149
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N=list(map(int,input().split()))
print("YES" if len(set(N))==4 and (1 in N or 9 in N or 7 in N or 4 in N) else "NO")

Failing test case input:
1 0 4 2

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
N=list(map(int,input().split()))
print("YES" if len(set(N))==4 and (1 in N and 9 in N and 7 in N and 4 in N) else "NO")

Problem: p03149
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A = [int(_) for _ in input().split()]

res = sorted(set(A), key=A.index)
print(len(res))
ttt = all((x == 1or x == 9 or x== 7 or x == 4  for x in A))



if ttt and len(res)==4:
    print("YES")
else:
    print("NO")

Failing test case input:
0 1 -1 23

Expected output:
NO


Actual output:
4
NO


Fixed submission (verdict: Accepted):
A = [int(_) for _ in input().split()]

res = sorted(set(A), key=A.index)
ttt = all((x == 1or x == 9 or x== 7 or x == 4  for x in A))

if ttt and len(res)==4:
    print("YES")
else:
    print("NO")

Problem: p03149
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = list(map(int, input().split()))
if "1" in n and "9" in n and "7" in n and "4" in n:
  print("YES")
else:
  print("NO")

Failing test case input:
1 9 7 4

Expected output:
YES

Actual output:
NO


Fixed submission (verdict: Accepted):
n = list(input().split())
if "1" in n and "9" in n and "7" in n and "4" in n:
  print("YES")
else:
  print("NO")
Problem: p03149
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = list(map(int,input().split()))
ncheck = [1, 7, 9, 4]

flag = 'YES'
for c in ncheck:
    print(c)
    if not c in n:
        flag = 'NO'


print(flag)


Failing test case input:
0 19 14 4

Expected output:
NO


Actual output:
1
7
9
4
NO


Fixed submission (verdict: Accepted):
n = list(map(int,input().split()))
ncheck = [1, 7, 9, 4]

flag = 'YES'
for c in ncheck:
    if not c in n:
        flag = 'NO'


print(flag)

Problem: p03149
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
print("YNEOS"[sorted(input())!=list("   1479")])

Failing test case input:
1 9 13 4

Expected output:
NO


Actual output:
N


Fixed submission (verdict: Accepted):
print("YNEOS"[sorted(input())!=list("   1479")::2])

Problem: p03149
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = input().split()
print('Yes' if ('1' in n) and ('9' in n) and ('7' in n) and ('4' in n) else 'No')


Failing test case input:
-1 3 4 -2

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
n = input().split()
print('YES' if ('1' in n) and ('9' in n) and ('7' in n) and ('4' in n) else 'NO')

Problem: p03149
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
print("YNeos"["".join(sorted(input().split()))!="1479"::2])

Failing test case input:
-2 12 2 -2

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
print("YNEOS"["".join(sorted(input().split()))!="1479"::2])

Problem: p03149
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
nums = list(map(str, input().split()))
flg = False
if len(set(nums)) != 4:
    pass
else:
    for num in nums:
        if num in "1974":
            flg = True
        else:
            continue
if flg == True:
    print("YES")
else:
    print("NO")

Failing test case input:
1 15 11 4

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
nums = list(map(str, input().split()))
flg = False
if len(set(nums)) != 4:
    pass
else:
    for num in nums:
        if num in "1974":
            flg = True
        else:
            flg = False
            break
if flg == True:
    print("YES")
else:
    print("NO")

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

input_list = list(map(int, input().split()))
a_list = [1, 4, 7, 9]
flg = True
for num in a_list:
    if(num in input_list):
        pass
    else:
        print(num)
        flg = False
if(flg):
    print("YES")
else:
    print("NO")


Failing test case input:
0 19 3 4

Expected output:
NO


Actual output:
1
7
9
NO


Fixed submission (verdict: Accepted):
l = list(map(int, input().split()))
list = [1, 4, 7, 9]
flg = True
for num in list:
  if(num in l):    
    pass
  else:
    flg = False
if(flg):
	print("YES")
else:
    print("NO")
Problem: p03149
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
l=sorted(list(map(int,input().split())))
if l==[1,7,9,4]:
  print("YES")
else:
  print("NO")
         


Failing test case input:
1 9 7 4

Expected output:
YES

Actual output:
NO


Fixed submission (verdict: Accepted):
l=sorted(list(map(int,input().split())))
if l==[1,4,7,9]:
  print("YES")
else:
  print("NO")

Problem: p03149
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=list(input().split())
a.sort()
b=[1,4,7,9]
if a==b:
  print('YES')
else: print('NO')

Failing test case input:
1 7 9 4

Expected output:
YES

Actual output:
NO


Fixed submission (verdict: Accepted):
a=list(map(int,input().split()))
a.sort()
if a==[1,4,7,9]:
  print('YES')
else: print('NO')

Problem: p03149
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A = list(map(int, input().split()))
A1 = A.count("1")
A9 = A.count("9")
A7 = A.count("7")
A4 = A.count("4")
if A1 == A9 == A7 == A4 == 1:
  print("YES")
else:
  print("NO")

Failing test case input:
1 7 9 4

Expected output:
YES

Actual output:
NO


Fixed submission (verdict: Accepted):
A = list(map(int, input().split()))
A1 = A.count(1)
A9 = A.count(9)
A7 = A.count(7)
A4 = A.count(4)
if A1 == A9 == A7 == A4 == 1:
  print("YES")
else:
  print("NO")

Problem: p03149
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def main():
    N = list(map(int, input().split()))
    if 1 in N:
        del N[N.index(1)]
    if 9 in N:
        del N[N.index(9)]
    if 7 in N:
        del N[N.index(7)]
    if 4 in N:
        del N[N.index(4)]
    if N == []:
        return "YES"
    else:
        return "N0"

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


Failing test case input:
1 19 0 1

Expected output:
NO


Actual output:
N0


Fixed submission (verdict: Accepted):
def main():
    N = list(map(int, input().split()))
    if 1 in N:
        del N[N.index(1)]
    if 9 in N:
        del N[N.index(9)]
    if 7 in N:
        del N[N.index(7)]
    if 4 in N:
        del N[N.index(4)]
    if N == []:
        return "YES"
    else:
        return "NO"

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

Problem: p03149
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
inputs = input().split()
print('YES' if '1' in inputs or '9' in inputs or '7' in inputs or '4' in inputs else 'NO')






Failing test case input:
1 0 0 2

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
inputs = input().split()
print('YES' if '1' in inputs and '9' in inputs and '7' in inputs and '4' in inputs else 'NO')

Problem: p03149
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = [int(i) for i in input().split()]
n.sort()
if n[0] == 1 and n[1] == 4 and n[2] == 7 and n[3] == 9:
  print("Yes")
else:
  print("No")

Failing test case input:
-1 3 13 -1

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
n = [int(i) for i in input().split()]
n.sort()
if n[0] == 1 and n[1] == 4 and n[2] == 7 and n[3] == 9:
  print("YES")
else:
  print("NO")