Problem:


Score : 100 points

Problem Statement

Iroha loves Haiku. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order.

To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.

Constraints

1≦A,B,C≦10

Input

The input is given from Standard Input in the following format:

A B C

Output

If it is possible to construct a Haiku by using each of the phrases once, print YES (case-sensitive). Otherwise, print NO.

Sample Input 1

5 5 7

Sample Output 1

YES

Using three phrases of length 5, 5 and 7, it is possible to construct a Haiku.

Sample Input 2

7 7 5

Sample Output 2

NO



Sample input:
5 5 7


Sample output:
YES

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
# まず長さが7の文節があるか確認
if (a == 7 ,b == 5,c == 5)or(a == 5,b == 7,c == 5)or(a==5,b==5,c==7):
	print("YES")
 
else:
	print("NO")

Submission status: Wrong Answer

Solution code:
A = list(map(int,input().split()))
ans = 'No'
if A.count(5) == 2:
    if A.count(7) == 1:
        ans = 'Yes'
print(ans)

Submission status: Wrong Answer

Solution code:
a = input().split()
if a.count(5) == 2:
    if a.count(7)==1:
        print("YES")
    else:
        print("NO")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
N = list(input().split())
flag = False
count_5 = 0
count_7 = 0
for n in N:
  a = int(n)
  if a == 5:
    count_5 = count_5 + 1
  elif a == 7:
    count_7 = count_7 + 1
  else:
    flag = True
    break
  if flag:
    break
if (count_5 == 2) and (count_7 == 1):
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
L=list(map(int, input().split()))
L.sort()

if L[0]==5 and L[1]==5 and L[2]==7:
  print("yes")
else:
  print("no")

Submission status: Wrong Answer

Solution code:
l = list(map(int,input().split()))

s = [5,7,5]
for a in l:
    if a in s:
        s.remove(a)
if s == []:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
l=list(map(int,input().split()))
if l.count(5)==2 and l.count(7)==1:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
s=list(map(int,input().split()))
s.sort()
if s[0]==7 and s[1]==5 and s[2]==5:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
s=list(input())
s.sort(key=lambda x:len(x))
if len(s[0])==7 and len(s[1])==5 and len(s[2])==5:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split());

if a == 5 and b == 7 and c == 5:
    print("YES");
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
s = list(map(int, input().split()))

if s.count(5) == 2 and s.count(7) == 1:
	print('Yes')
else:
	print('No')

Submission status: Wrong Answer

Solution code:
li = list(map(int,input().split()))
i_5=0;i_7=0
for i in li:
  if i == '5':
    i_5 += 1
  elif i == '7':
    i_7 += 1
if i_5 == 2 and i_7 == 1:
  print('YES')
else:
  print('NO')

Submission status: Wrong Answer

Solution code:
ary = list(map(int, input().split()))
if ary.count(5) == 2 and ary.count(7) == 1:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
list=list(map(int,input().split()))
print("YES" if list.count(7)==1 and list.count(5)==2 else "N")

Submission status: Wrong Answer

Solution code:
list=list(map(int,input().split()))
print("YES" if list.count(7)==1 and list.count(5)==2 else "No")

Submission status: Wrong Answer

Solution code:
list=list(map(int,input().split()))
print("YES" if list.count(7)==2 and list.count(5)==1 else "No")

Submission status: Wrong Answer

Solution code:
a = list(map(int, input().split()))
count = 0
count1 = 0
for i in range(3):
  if a[i] == 5:
    count+=1
  elif a[i] == 7:
    count1+=1
    
if count == 2 & count1 == 1:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
s = a+b+c
if s == 17:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
# スペース区切りの整数の入力
a, b, c = map(int, input().split())
s = a+b+c
if s == 17:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
# スペース区切りの整数の入力
a, b, c = map(int, input().split())

if a+b+c==17:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
# スペース区切りの整数の入力
A, B, C = map(int, input().split())

if A+B+C==17:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
# スペース区切りの整数の入力
A, B, C = map(int, input().split())

if A==5 and B==5 and C==7:
  print('Yes')
elif A==5 and B==7 and C==5:
  print('Yes')
elif A==7 and B==5 and C==5:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
A = 5
B = 5
C = 7

if A==5 and B==5 and C==7:
  print('Yes')
elif A==5 and B==7 and C==5:
  print('Yes')
elif A==7 and B==5 and C==5:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
A, B, C = input().split()
if A + B + C == 17:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
A,B,C = map(int,input().split())
x = [A,B,C]
x.sort()
if x[0]==5 and x[1]==5 and x[2]==7:
    print("YES")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
A=[x for x in input().split()]
c5=0
c7=0
for i in range(3):
  if A[i]=='5':
    c5=c5+1
  elif A[i]=='7':
    c7=c7+1
if c5==2 and c7==1:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
A,B,C=map(int,input().split())
list=[A,B,C]
if list == [5,7,5]or[5,7,7]or[7,5,5]:
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
A,B,C=map(int,input().split())
list=[A,B,C]
if list == [5,7,5]or[5,5,7]or[7,5,5]:
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
input_line=input().rstrip().split(" ")
a=int(input_line[0])
b=int(input_line[1])
c=int(input_line[2])
if a+b+c!=17:
    print("NO")
elif a==b==5 or a==c==5:
    print("YES")

Submission status: Wrong Answer

Solution code:
l = list(map(int, input().split()))
if l.count(5) == 2 and l.count(7) == 1:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
List = [int(i) for i in input().split()]

List.sort()

if List == [5, 5, 7]: print("Yes")
else: print("No")

Submission status: Wrong Answer

Solution code:
num = list(map(int,input().split()))
count5 = 0
count7 = 0
print(num)
for i in num:
    if i == 5:
        count5 += 1
    elif i == 7:
        count7 += 1
    else:
        continue
if count5 == 2 and count7 == 1:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
num = list(input().split())
count5 = 0
count7 = 0
for i in num:
    if i == 5:
        count5 += 1
    elif i == 7:
        count7 += 1
    else:
        continue
if count5 == 2 and count7 == 1:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
def iroha(a,b,c):
  if a*b*c == 5*5*7 and (a == b or a ==c):
    return YES
  else:
    return NO

Submission status: Wrong Answer

Solution code:
a,b,c = map(int, input().split())
print('Yes' if a+b+c ==17 else 'No')

Submission status: Wrong Answer

Solution code:
a, b, c = sorted(map(len, input().split()))

if [a, b, c] == [5, 5, 7]:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
haiku = [5,5,7]
a = input().split(" ")
a = sorted(a)
if haiku == a:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
haiku = [5,7,5]
a = input().split(" ")
for i in a:
  if i in haiku:
    haiku.pop(haiku.index(i))
if len(haiku) == 0:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
L = list(map(int, input().split()))
L.sort()
print(L)
for i in range(2):
  if not L[i] == 5:
    print("NO")
    exit()
if not L[2] == 7:
  print("NO")
  exit()
print("YES")

Submission status: Wrong Answer

Solution code:
p = list(map(int, input().split()))
if p.count(7) == 2 and p.count(5) == 1:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
A, B, C = input().split()
if A == 5 and B == 5 and C == 7:
  print('YES')
elif A == 5 and B == 7 and C == 5:
  print('YES')
elif A == 7 and B == 5 and C == 5:
  print('YES')
else:
  print('NO')

Submission status: Wrong Answer

Solution code:
num5 = 0
num7 = 0
for num in map(int, input().split()):
    print(num)
    if num == 5:
        num5 += 1
    elif num == 7:
        num7 += 1
    else:
        print('NO')
        exit()

if num5 == 2 and num7 == 1:
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
A,B,C=map(int, input().split())
x=0
if A==5:
    x+=1
if B==5:
    x+=1
if C==5:
    x+=1
if A==7:
    x+=1
if B==7:
    x+=1
if C==7:
    x+=1
if x==3:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
Haiku = list(map(int, input().split()))
Haiku.sort()

if Haiku[0] == 5 and Haiku[1] == 5 and Haiku[1] == 7:
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
abc = list(input())
print('YES' if abc.count('5')==2 & abc.count('7')==1 else 'NO')

Submission status: Wrong Answer

Solution code:
test = input().split()
if test.count("5") != 2:
    print("NO")
if "7" in test:
    print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
test = input().split()
if test.count("5") != 2:
    print("NO")
if "7" in test:
    print("YES")

Submission status: Wrong Answer

Solution code:
x,y,z = map(int,input().split())
if x == 5 and y == 7 and z == 5:
  print('YES')
if x == 5 and y == 5 and z == 7:
  print('YES')
if x == 7 and y == 5 and z == 5:
  print('YES')
else:
  print('NO')

Submission status: Wrong Answer

Solution code:
a=input().split()
b=0
for i in a:
  if i in ['5','7']:
    b=b+int(i)
    re='Yes'
  else:
    b=b+int(i)
    re='No'
    break
    
if b==17 and re!='No':
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
from sys import stdin
lis = stdin.readline().rstrip().split()
a = int(lis[0])
b = int(lis[1])
c = int(lis[2])

if a == 5 or a == 7:
    if a == 5:
        if b == 5 and c ==7:
            print("YES")
        elif b == 7 and c ==5:
            print("YES")

    elif a == 7:
        if b == 5 and c == 5:
            print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
from sys import stdin
lis = stdin.readline().rstrip().split()
a = lis[0]
b = lis[1]
c = lis[2]

if a == 5:
    if b == 5 and c ==7:
        print("YES")
    elif b == 7 and c ==5:
        print("YES")
elif a == 7:
    if b == 5 and c == 5:
        print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
from sys import stdin
lis = stdin.readline().rstrip().split()
a = lis[0]
b = lis[1]
c = lis[2]

if a == 5:
    if b == 5 and c ==7:
        print("YES")
    elif b == 7 and c ==5:
        print("YES")
    else:
        print("NO")
elif a == 7:
    if b == 5 and c == 5:
        print("YES")
    else:
        print("NO")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
from sys import stdin
lis = stdin.readline().rstrip().split()
a = lis[0]
b = lis[1]
c = lis[2]

if a == 5:
    if b == 5 and c ==7:
        print("YES")
    elif b == 7 and c ==5:
        print("YES")
    else:
        print("NO")
elif a == 7:
    if b == 5 and c == 5:
        print("YES")
    else:
        print("NO")

Submission status: Wrong Answer

Solution code:
l = input().split()
c_7 = 0
c_5 = 0
for i in l:
  if i == 7:
    c_7 += 1
  if i == 5:
    c_5 += 1
if c_7 == 1 and c_5 == 2:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
input_line = map(int,input().split())
print(input_line)

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
if a + b + c == 19:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
if a == 5 and b == 7 and c == 5:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
a = input().split().sort()
if a == [5, 5, 7]:
  print('YES')
else:
  print('NO')

Submission status: Wrong Answer

Solution code:
a, b, c =input().split()
n = [a, b, c]

c5 = 0
c7 = 0
for i in n:
    if i == 5:
        c5 += 1
    if i == 7:
        c7 += 1

if c5 == 2 and c7 == 1:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
ABC = list(map(int, input().split()))
ABC2 = sorted(ABC)
if ABC2[0] == 5 and ABC2[1] == 5 and ABC[2]==7:
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
a,b,c=input().split(" ")
num=[a,b,c]
num.remove("5") if "5" in num else None
num.remove("5") if "5" in num else None
num.remove("7") if "7" in num else None
if num ==[]:
    print("YES")
else:
    print("N0")

Submission status: Wrong Answer

Solution code:
# coding: utf-8
# Your code here!

input_list = input().split()
sort_list = (int(input_list[0]),int(input_list[1]),int(input_list[2]))

tuple_a = (5,5,7)
tuple_b = (5,7,5)
tuple_c = (7,7,5)

if sort_list==tuple_a or sort_list==tuple_b or sort_list==tuple_c:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
input_text = input()
input_ = input_text.split()

cou5 = 0
cou7 = 0

for i in ([int(j) for j in input_]):
    if int(i) == 5:
        cou5 += 1
    elif int(i) == 7:
        cou7 += 1

if cou5 == 2 and cou7 == 1:
    result = "Yes"
else :
    result = "No"

print(result)

Submission status: Wrong Answer

Solution code:
N = input()
C5 = 2
C7 = 1
for i in N.split():
  if i == '5':
    C5 -= 1
  elif i == '7':
    C7 -= 1
  else:
    print( 'No' )
    break
else:
  if C5 == 0 and C7 == 0:
    print( 'Yes' )
  else:
    print( 'No' )

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
if a == 5 and b == 5 and c == 7:
    print('YES')
elif a == 5 and b == 7 and c == 5:
    print('YES')
elif a == 7 and b == 5 and c == 7:
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
#A
lst = list(map(int,input().split()))
ans = 'No'
if (lst.count(5) == 2 and lst.count(7) == 1):
    ans = 'Yes'
print(ans)

Submission status: Wrong Answer

Solution code:
a,b,c = map(int, input().split())

if( (a + b + c == 17) and (a == 5 or a == 7) and (b == 5 or b == 7) and (c == 5 or c == 7)):
    print('yes')
else:
    print('no')

Submission status: Wrong Answer

Solution code:
a=list(input().split())
a.sort()
print("YES" if a==["5","5",7] else "NO")

Submission status: Wrong Answer

Solution code:
a=list(map(lambda x: len(x),list(input().split())))
a.sort()
print("YES" if a==[5,5,7] else "NO")

Submission status: Wrong Answer

Solution code:
print(["YES'","NO"][input().count("7")==2])

Submission status: Wrong Answer

Solution code:
a = input()
print('YES' if a.count("5") == 2 and a.count("7") == 1 else 'No')

Submission status: Wrong Answer

Solution code:
print(['NO','YES'][{'5','7','5'}==set(input().split())])

Submission status: Wrong Answer

Solution code:
context = input()
bunsetus = context.split()
five_count = 0
seven_count = 0

for bunsetu in bunsetus:
    if int(bunsetu)==5:
        five_count+=1
    elif int(bunsetu)==7:
        seven_count+=1
    
if five_count==2 and seven_count==1:
    print("OK")
else :
    print("NG")

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
List=[a,b,c]
if List.count("5") == 2 and List.count("7") ==1:
    print("YES")
else: 
    print("NO")

Submission status: Wrong Answer

Solution code:
List = [int(i) for i in input().split()]
List.sort()

ans='No'
if List[0]==5:
  if List[1]==5:
    if List[2]==7:
      ans='Yes'
print(ans)

Submission status: Wrong Answer

Solution code:
s = input().split()

a = len(s[0])
b = len(s[1])
c = len(s[2])

count_5 = 0
if a == 5:
  count_5 += 1
if b == 5:
  count_5 += 1
if c == 5:
  count_5 += 1
  
count_7 = 0
if a == 7:
  count_7 += 1
if b == 7:
  count_7 += 1
if c == 7:
  count_7 += 1
  
if count_5 == 2 and count_7 == 1:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
s = [x for x in input().split()]
print("Yes" if s.count("5") == 2 and s.count("7") == 1 else "No")

Submission status: Wrong Answer

Solution code:
a=input("ABC")
if a==557:
	print("YES")
elif a==575:
	print("YES")
elif a==755:
	print("YES")
else:
	print("NO")

Submission status: Wrong Answer

Solution code:
a = list(map(int,input().split()))
b = [x for x in a if x !=" "]
c = sorted(b)
d =[5,5,7]
print("YES" if c == d else "NO")
print(b)
print(c)

Submission status: Wrong Answer

Solution code:
a = list(map(int,input().split()))
b = [x for x in a if x !=" "]
c = sorted(b)
d =[5,5,7]
print("Yes" if c == d else "No")

Submission status: Wrong Answer

Solution code:
# coding: utf-8
# Your code here!

a = list(map(int,input().split()))
if a.count(5) == 2 and a.count(7) == 1:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
ABC = list(map(int, input().split()))
ABC.sort()

print('Yes' if ABC == [5, 5, 7] else 'No')

Submission status: Wrong Answer

Solution code:
ABC = list(map(int, input().split()))

print('Yes' if ABC[0] * ABC[1] * ABC[2] == 175 else 'No')

Submission status: Wrong Answer

Solution code:
a = list(map(int, input().split()))
if a.sort() == [5, 5, 7]:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
s = sorted(list(map(int, input().split()))) 
if s[0] == 5 and s[1] == 5 and s[2] == 7:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
if (a==5 and b==5 and c==7) or (a==5 and b==7 and c==5) or (a==7 and c==5 and b==5):
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
if (a==5 and b==5) or (a==5 and c==5) or (c==5 and b==5):
    if a+b+c==17 :
        print('Yes')
    else:
        print('No')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
s = list(map(int, input().split()))
s.sort()
print(s)
if s[0] == 5 and s[1] == 5 and s[2] == 7:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
def Haiku(check,syllables):
    check.sort()
    syllables.sort()
    if check==syllables:
        return "YES"
    else:
        return "NO"

Submission status: Wrong Answer

Solution code:
print("YES" if sorted(list(input().split()))==["5" "5" "7"] else "NO")

Submission status: Wrong Answer

Solution code:
li = list(map(int, input().split()))
if li == [5,5,7] or li == [5,7,5] or li == [7,5,5]:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
li = list(map(int, input().split()))
if li == [5,5,7] or [5,7,5] or [7,5,5]:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
a, b, c = map(int,input().split())
if ((a == b == 5 and c == 7) or (a == c == 5 and b == 7) or (b == c == 5 and a == 7)):print("Yes")
else: print("No")

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
if a + b + c == 17:
  if (a == b == 5 and c == 7) or (a == c == 5 and b == 7) or (b == c == 5 and a == 7):
    print("Yes")
  else: print("No")

Submission status: Wrong Answer

Solution code:
test=list(map(int, input().split()))
 
def iroha():
    if test==[5,5,7]:
        print("yes")
    elif test==[5,7,5]:
        print("yes")
    elif test==[7,5,5]:
        print("yes")
    else:
        print("no")
 

iroha()

Submission status: Wrong Answer

Solution code:
s = input().split()
print(s.count('5') == 2 and s.count('7') == 1)

Submission status: Wrong Answer

Solution code:
print("YES" if sorted(list(map(int,input().split())))=="[5,5,7]" else "NO")

Submission status: Wrong Answer

Solution code:

def main():
  inputs = input().split()
  if len(inputs)==3:
    if inputs.count("5")==2 and inputs.count("7")==1:
      print("YES")
      return
  
  print("No")
  return


if __name__ == "__main__":
  main()

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
print("YES" if a==c else "NO")

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())

s = sorted([a, b, c])
           
print('Yes' if s[0] ==5 and s[1] == 5 and s[2]== 7 else 'No')

Submission status: Wrong Answer

Solution code:
n=sum(list(map(int,input().split())))
if n==17:
  print("yes")
else:
  print("no")

Submission status: Wrong Answer

Solution code:
from collections import defaultdict
strings = raw_input().split()
# a, b, c = int(strings[0]), int(strings[1]), int(strings[2])
cand = {
    '5': 2,
    '7': 1
}
source = defaultdict(int)
for i in range(len(strings)):
    if strings[i] == '5':
        if source[strings[i]]:
            source[strings[i]] += 1
        else:
            source[strings[i]] = 1
    elif strings[i] == '7':
        if source[strings[i]]:
            source[strings[i]] += 1
        else:
            source[strings[i]] = 1
print source == cand

Submission status: Wrong Answer

Solution code:
A = sorted(map(int, input().split()))
B=[5,5,7]

if A==B:
    print("YES")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a = list(map(int, input().split()))
if a == [5,5,7]:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
from collections import Counter
A = Counter(map(int, input().split()))

print (A)

Submission status: Wrong Answer

Solution code:
lis = list(input().split())
lis.sort()
if lis == [5,5,7]:
  print('YES')
else:
  print('NO')

Submission status: Wrong Answer

Solution code:
N = input().split()
if N.count('5') == 2 and N.count('7') == 1:
    print('YES')
else:
    print('N0')

Submission status: Wrong Answer

Solution code:
N = list(map(int, input().split()))
cnt_5 = 0
cnt_7 = 0
for n in N:
    if n == 5 :
        cnt_5 += 1
    elif n == 7 :
        cnt_7 += 1

if cnt_5 == 2 and cnt_7 == 1:
    print('YES')
else:
    print('N0')

Submission status: Wrong Answer

Solution code:
N = map(int, input().split())
cnt_5 = 0
cnt_7 = 0
for n in N:
    if n == 5 :
        cnt_5 += 1
    elif n == 7 :
        cnt_7 += 1

if cnt_5 == 2 and cnt_7 == 1:
    print('YES')
else:
    print('N0')

Submission status: Wrong Answer

Solution code:
N = map(int, input().split())
cnt_5 = 0
cnt_7 = 0
for n in N:
    if n == 5 :
        cnt_5 += 1
    elif n == 7 :
        cnt_7 += 1

if cnt_5 == 2 & cnt_7 == 1:
    print('Yes')
else:
    print('N0')

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
# 整数の入力
s = input().split(" ")
# 5,7,5を判定
print(s)
if s.count('5') == 2 and s.count('7') == 1:
	print("YES")
else:
	print("NO")

Submission status: Wrong Answer

Solution code:
import sys
input=sys.stdin.readline

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

if l.count(5) == 2 and l.count(7) == 1:
    print("yes")
else:
    print("no")

Submission status: Wrong Answer

Solution code:
w = list(input().split())
if w == ['5', '7', '5']:
  print('YES')
else:
  print('NO')

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
print("Yes" if (a == b == 5 and c == 7) or (b == c == 5 and a == 7) or (a == c == 5 and b == 7) else "No")

Submission status: Wrong Answer

Solution code:
A, B, C = map(int, input().split())
if A*B*C == 5*5*7:
  print("YEAS")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
A, B, C = map(int, input().split())
if A+B+C== 17:
  print("YEAS")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
print(sorted(input().split()) == ['5','5','7'])

Submission status: Wrong Answer

Solution code:
numbers=sorted(list(map(int,input().split())))
if numbers == [5,7,7]:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
a , b , c = input().split()
if a + b + c ==17:
  if a != 5:
    if b == c and b ==5:
      print("YES")
  else:
    if b == 5 or c == 5:
      print("NO")

Submission status: Wrong Answer

Solution code:
a , b , c = input().split()
if a + b + c == 17:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
a , b , c = input().split()
if a + b + c == 22:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
a,b,c = input().split()

a = int(a)
b = int(b)
c = int(c)

if a+b+c != 17:
  print('No')
else:
  if (a == 5 and b == 5) or ( a ==5 and c == 5) or (b ==5 and c == 5):
    print('Yes')
  else:
    print('No')

Submission status: Wrong Answer

Solution code:
# coding: utf-8

import numpy as np

if __name__ == "__main__":
    
    input_str = input("")
    
    length_str = np.array([int(f) for f in input_str.split(" ")])
    
    if np.sum(length_str == 5) and np.sum(length_str == 7):
        print("YES")
    else:
        print("NO")

Submission status: Wrong Answer

Solution code:
# coding: utf-8

import numpy as np

if __name__ == "__main__":
    
    input_str = input("input >>> ")
    
    length_str = np.array([int(f) for f in input_str.split(" ")])
    
    if np.sum(length_str == 5) and np.sum(length_str == 7):
        print("YES")
    else:
        print("NO")

Submission status: Wrong Answer

Solution code:
a = map(int, input().split())
print("YES") if set([5, 7]) == set(a) else print("NO")

Submission status: Wrong Answer

Solution code:
a = map(int, input().split())
print(set([5, 7]) == set(a))

Submission status: Wrong Answer

Solution code:
l=(int,input().split())
f=len([i for i in l if i == 5])==2
s=len([i for i in l if i == 7])==1
print( 'YES' if f and s else 'NO')

Submission status: Wrong Answer

Solution code:
a=list(map(int,input().split()))
a.sort()
if a[0]==5 and a[1]==5 and a[2]==7:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
ABC = list(map(int,input().split()))
ans = 'No'
count_5 = 0
count_7 = 0

for abc in ABC:
    if abc==5:
        count_5 += 1
    elif abc==7:
        count_7 += 1
if count_5==2 and count_7==1:
    ans = 'Yes'
print(ans)

Submission status: Wrong Answer

Solution code:
array = input().split()
N = array[0]
L = array[1]
strs = array[2:]
print( sorted(strs) )

Submission status: Wrong Answer

Solution code:
array = input().split()
N = array[0]
L = array[1]
strs = array[2:]
print( strs[0] )
print( sorted(strs) )

Submission status: Wrong Answer

Solution code:

a, b, c = map( int, input().split() )
if a+b+c != 17:
	print( "NO" )
 
iCountFive = 0
if a == 5:
	iCountFive += 1
if b == 5:
	iCountFive += 1
if c == 5:
	iCountFive += 1      
 
iCountSeven = 0
if a == 7:
	iCountSeven += 1
if b == 7:
	iCountSeven += 1
if c == 7:
	iCountSeven += 1      
 
if iCountFive == 2 and iCountSeven == 1:
	print( "YES" )
else :
	print( "NO" )

Submission status: Wrong Answer

Solution code:
lst1 = [5,5,7]
lst2 = list(map(int, input().split()))
sorted(lst2)
if lst1 == lst2:
  print('YES')
else:
  print('NO')

Submission status: Wrong Answer

Solution code:
lst = list(map(int, input().split()))
if lst.count(5) == 2 and lst.count(7) == 1:
  print('YES')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
a=list(map(int,input().split())).sort()
if a==[5,5,7]:
  print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
[a,b,c]=input().split()
[a,b,c].sort()
if [a,b,c]==[5,5,7]:
	print("YES")
else:print("NO")

Submission status: Wrong Answer

Solution code:
[a,b,c]=input().split()
[A,B,C]=list(map(len, [a,b,c]))
haiku=[A,B,C]
haiku.sort()
if haiku==[5,5,7]:
	print("YES")
else:print("NO")

Submission status: Wrong Answer

Solution code:
[a,b,c]=input().split()
[A,B,C]=map(len, [a,b,c])
haiku=[A,B,C]
haiku.sort()
if haiku==[5,5,7]:
	print("YES")
else:print("NO")

Submission status: Wrong Answer

Solution code:
[A,B,C]=map(len, input().split())
[A,B,C].sort()
if [A,B,C]==[5,5,7]:
	print("YES")
else:print("NO")

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
if sorted((a, b, c)) == [5, 5, 7]:
  print('Yes')
else:
  print('NO')

Submission status: Wrong Answer

Solution code:
a = list(map(int, input().split()))
a.sort()
if (a[0] == 5 and a[1] == 5 and a[2] == 7):
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
x = list(map(int, input().split()))
x.sort()
if x[0] == 5 and x[1] == 5 and x[2]== 5:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
num = input().split()
if num.count('5')==1 and num.count('7')==2:
  print('YES')
else: print('NO')

Submission status: Wrong Answer

Solution code:
num_list = list(input().split())
if num_list.count(5)==2 and num_list.count(7)==1:
  print('YES')
else:
  print('NO')

Submission status: Wrong Answer

Solution code:
l=list(map(int,input().split()))
if(l[0]==l[1] and l[0]==5):
  if(l[2]==7):
    print("YES")
  else:
    print("NO")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
n = input().split()
result = 'NO'
print(n)
if n.count('5') == 2 and n.count('7') == 1:
  result = 'YES'
print("{}".format(result))

Submission status: Wrong Answer

Solution code:
n = input().split()
result = 'NO'
print(n)
if n.count('5') == 2 and n.count('7') == 1:
  result = 'YES'
print("{} ".format(result))

Submission status: Wrong Answer

Solution code:
l=[5,5,7]
ll=map(int,input().split())
if l==ll:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
l=[5,5,7]
ll=map(int,input().split())
print(l==ll)

Submission status: Wrong Answer

Solution code:
#入力した整数が５、７、５であるならばTrueを返す
# int,int,int -> True 

def check7(x,y,z):
    if x == 7:
        if y == z and y == 5 :
            print("YES")
        else:
            print("NO")
    elif y == 7:
        if x == z and x == 5:
            print("YES")
        else:
          print("NO")
    elif z == 7:
        if x == y and x == 5:
          print("YES")
        else:
          print("NO")
    else:
      print("NO")

Submission status: Wrong Answer

Solution code:
#import sys
#input = sys.stdin.readline
def main():
    A = list(input().split())
    five = 0
    seven = 0
    for a in A:
        if len(a) == 5:
            five += 1
        elif len(a)  == 7:
            seven += 1
    if five == 2 and seven == 1:
        print("YES")
    else:
        print("NO")
if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
a, b, c = input().split(' ')

cnt5 = 0
cnt7 = 0
for num in [a, b, c]:
    if num == 5:
        cnt5 += 1
    if num == 7:
        cnt7 += 1

if cnt5 == 2 and cnt7 == 1:
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
l = list(map(int, input().split()))
l.sort()
print(l)
if l == [5,5,7]:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
l = list(map(int, input().split())).sort()
print(l)
if l == [5,5,7]:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
l = list(map(int, input().split()))
print(l)
if l == [5,5,7]:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
l = input().split().sort()
if l == [5,5,7]:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
l = input().split().sort()
if l == [5,7,7]:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
a=[int(x) for x in input().split()]
a.sort()
if a.sort() == [5,5,7]:print("YES")
else:print("NO")

Submission status: Wrong Answer

Solution code:
a=[int(x) for x in input().split()]
b=a.sort()
if b == [5,5,7]:print("YES")
else:print("NO")