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: Accepted

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

Submission status: Accepted

Solution code:
A,B,C=map(int,input().split())

hoge=set([A,B,C])
if hoge==set([5,7]):
    if A+B+C==17:
        print("YES")
    else:
        print("NO")
else:
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()
if S == "5 5 7" or S == "5 7 5" or S == "7 5 5":
  print("YES")
else:
  print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = str(input())


if a.count('5') == 2 and a.count('7'):
  print('YES')
else:
  print('NO')

Submission status: Accepted

Solution code:
a = str(input().replace(' ', ''))


if a.count('5') == 2 and a.count('7'):
  print('YES')
else:
  print('NO')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A, B, C = map(int, input().split())
if max(A, B, C)==7 and min(A, B, C)==5 and A+B+C==17:
  print("YES")
else:
  print("NO")

Submission status: Accepted

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

Submission status: Accepted

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: Accepted

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

hairetsu=[a,b,c]


if hairetsu.count(int(5))==2:
    if hairetsu.count(int(7))==1:
        print('YES')
    else:
        print('NO')
else:
    print('NO')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
a = list(map(int, input().split()))
b = a.count(5)
c = a.count(7)
if b == 2 and c == 1:
  print('YES')
else:
  print('NO')

Submission status: Accepted

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

if haiku_list==[5, 5, 7]:
	print('YES')
elif haiku_list==[5, 7, 5]:
	print('YES')
elif haiku_list==[7, 5, 5]:
	print('YES')
else:
	print('NO')

Submission status: Accepted

Solution code:
iroha_list = list(map(int, input().split()))
iroha_set = set(iroha_list)

if sum(iroha_list) != 17:
    print("NO")
else:
    if iroha_set == {5, 7}:
        print("YES")
    else:
        print("NO")

Submission status: Accepted

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: Accepted

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

flag=0
if inputs.count(5)==2:
  if inputs.count(7)==1:
    print('YES')
    flag=1
    
if flag==0:
  print('NO')

Submission status: Accepted

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

Submission status: Accepted

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: Accepted

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

if l==[5,5,7]:
    print('YES')
elif l!=[5,5,7]:
    print('NO')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
ans = 0
A = list(map(int, input().split()))

for x in A:
    ans += x

print("YES" if ans == 17 else "NO")

Submission status: Accepted

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

if str.count('5') == 2 and str.count('7') == 1:
  print('YES')
else:
  print('NO')

Submission status: Accepted

Solution code:
import itertools
A, B, C = map(int, input().split())
bln = False
for l in itertools.permutations([A,B,C]):
    if l[0]==5 and l[1]==7 and l[2]==5:
        bln = True
        break
    else: continue
print("YES" if bln else "NO")

Submission status: Accepted

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

Submission status: Accepted

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: Accepted

Solution code:
# スペース区切りの整数の入力
input_val = input()

five_count = 0
seven_count = 0
for x in input_val:
    if x == '5':
        five_count += 1
        continue
    if x == '7':
        seven_count += 1

if five_count == 2 and seven_count == 1:
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
N = input().split(" ")
N = list(map(int,N))
thelist=[5,7,5]

for i in N:
  try:
    thelist.remove(i)
  except:
  	pass

if len(thelist)==0:
  print('YES')
else:
  print('NO')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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: Accepted

Solution code:
def test():
    s = input()
    a = s.count("7")
    b = s.count("5")
    print("YES" if a == 1 and b == 2 else "NO")


if __name__ == "__main__":
    test()

Submission status: Accepted

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

Submission status: Accepted

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

if s.count("5") == 2 and s.count("7") == 1:
  print("YES")
else:
  print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=list(input().split())
s.sort()
print("YES" if "".join(s)=="557" else "NO")

Submission status: Accepted

Solution code:
ABC = list(map(int, input().split()))
print('YNEOS'[not (ABC.count(5) == 2 and ABC.count(7) == 1)::2])

Submission status: Accepted

Solution code:
a,b,c=sorted(input().split());print('YES'if a+b+c=='557'else'NO')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = list(map(int, input().split()))
count_5 = 2
count_7 = 1
for i in range(len(n)):
    if n[i] == 5:
        count_5 -= 1
    elif n[i] == 7:
        count_7 -= 1
if count_5==0 and count_7==0:
    print('YES')
else:
    print('NO')

Submission status: Accepted

Solution code:
A = [int(i) for i in input().split()]
A.sort()
if A == [5,5,7]:
    print('YES')
else:
    print('NO')

Submission status: Accepted

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

Submission status: Accepted

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 b==5 and c==5):
    print('YES')
else:
    print('NO')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = list(map(int, input().split()))
a = 0
for i in x:
        if i != 5 and i != 7:
                a = 1
        break
if a == 0:
        if sum(x) == 17:
                print('YES')
        else:
                print('NO')
else:
        print('NO')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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
if source == cand:
    print "YES"
else:
    print "NO"

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def A_IrohaandHaiku():
    A = list(map(int, input().split()))
    A.sort()
    ans = "NO"
    if [5,5,7] == A:
        ans = "YES"
    print(ans)
    
if __name__ == "__main__":
    A_IrohaandHaiku()

Submission status: Accepted

Solution code:
five = 0
seven = 0

for i in input().split():
  if int(i) == 5:
    five += 1
  elif int(i) == 7:
    seven += 1
    
if (five == 2) and (seven == 1):
  print('YES')
else:
  print('NO')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

if a.count("5") == 2 and a.count("7") == 1:
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

print ("YES "if (A[5] == 2 and A[7] == 1) else "NO")

Submission status: Accepted

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

Submission status: Accepted

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: Accepted

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

if (a == 5 and b == 5 and c==7) or (a==7 and b == 5 and c == 5) or (a==5 and b == 7 and c==5):
  print('YES')
else:
  print('NO')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import collections
a = collections.Counter(list(map(int, input().split()))).items()
for k, v in a:
    if (k != 5 or v != 2) and (k != 7 or v != 1):
        print("NO")
        exit()
print("YES")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

if a[0]==5 and a[1]==5 and a[2]==7:
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

s = list(map(int, input().split()))
print('YES' if s.count(5) == 2 and s.count(7) == 1 else 'NO')

Submission status: Accepted

Solution code:

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

Submission status: Accepted

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

Submission status: Accepted

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: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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 b==5 and c==5) :
    print("YES")
else :
    print("NO")

Submission status: Accepted

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

if a.count(5) == 2 and a.count(7) == 1:
    print('YES')
else:
    print('NO')

Submission status: Accepted

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

Submission status: Accepted

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: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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 B == 5 and C == 5):
  print('YES')
else:
  print('NO')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x=[i for i in map(int,input().split())]
if x.count(5)==2 and x.count(7):
  print('YES')
else:
  print('NO')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

if sorted(haiku) == [5, 5, 7]:
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
count_5 = 0
count_7 = 0
for s in input().split():
    if s == '5':
        count_5 += 1
    if s == '7':
        count_7 += 1
if count_5 == 2 and count_7 == 1:
    print('YES')
else:
    print('NO')

Submission status: Accepted

Solution code:
from collections import Counter
a = map(int, input().split())
a_cnt = Counter(a)
if a_cnt[5] == 2 and a_cnt[7] == 1:
    print('YES')
else:
    print('NO')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# スペース区切りの整数の入力
a, b, c = map(int, raw_input().split())
sum = a+b+c
if sum == 17:
  print "YES"
else: 
  print "NO"

Submission status: Accepted

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

a.sort()

b = ['5', '5', '7']

if a == b:
  print('YES')
else:
  print('NO')

Submission status: Accepted

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) == 2 and np.sum(length_str == 7) == 1:
        print("YES")
    else:
        print("NO")

Submission status: Accepted

Solution code:
A = sorted(int(x) for x in input().split())
if A[0] == A[1] == 5 and A[2] == 7:
  print("YES")
else:
  print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
ABC_str = input()
ABC_list = ABC_str.split(' ')
ABC_list.sort()
if ABC_list[0] == '5' and ABC_list[1] == '5' and ABC_list[2] == '7':
    print('{}'.format('YES'))
else:
    print('{}'.format('NO'))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = [int(x) for x in input().split()]
b = sorted(a)
if b[0]==b[1]==5 and b[2]==7:
    print('YES')
else:
    print('NO')

Submission status: Accepted

Solution code:
def k(a,i1,i2):
  if(a==7):
    i1 = i1+1
  if(a==5):
    i2 = i2+1
  return i1,i2
  
a,b,c=map(int,input().split())
i1=0
i2=0
i1,i2 = k(a,i1,i2)
i1,i2 = k(b,i1,i2)
i1,i2 = k(c,i1,i2)
print('YES' if i1==1 and i2==2 else 'NO')

Submission status: Accepted

Solution code:
import sys

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

if sorted(args) == [5, 5, 7]:
  print('YES')
else:
  print('NO')

Submission status: Accepted

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: Accepted

Solution code:
abc = input()

if abc.count('5') == 2 and abc.count('7') == 1:
    print('YES')
else:
    print('NO')

Submission status: Accepted

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: Accepted

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 == 5:
  	print( "YES" )
else :
	print( "NO" )

Submission status: Accepted

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: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys
sys.setrecursionlimit(300000)
YES = "YES"  # type: str
NO = "NO"  # type: str
def solve(A: int, B: int, C: int):
    ret = NO
    if min(A, B, C) == 5 and max(A, B, C) == 7 and sum([A, B, C]) == 17:
        ret = YES
    print(ret)
    return
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    A = int(next(tokens))  # type: int
    B = int(next(tokens))  # type: int
    C = int(next(tokens))  # type: int
    solve(A, B, C)
if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:

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

if lst2.count(5) == 2 and lst2.count(7) == 1:
  print('YES')
else:
  print('NO')

Submission status: Accepted

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

Submission status: Accepted

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: Accepted

Solution code:
# ABC042 A
p_length = input().split()

if p_length.count("7") == 1 and p_length.count("5") == 2:
    print("YES")
else: print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A,B,C=map(int,input().split())
a=str(A)
b=str(B)
c=str(C) 
s=a+b+c
if s.count("5")==2 and s.count("7")==1:
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
cnt5 = 0
cnt7 = 0

def check57(m):
    global cnt5
    global cnt7
    if m == 5:
        cnt5 += 1
    elif m == 7:
        cnt7 += 1

a, b, c = map(int, raw_input().split())
check57(a)
check57(b)
check57(c)
if cnt5 == 2 and cnt7 == 1:
    print "YES"
else:
    print "NO"

Submission status: Accepted

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

ans = [5, 5, 7]

if ans == a:
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A,B,C=list(map(int, input().split()))
haiku=[A,B,C]
five=haiku.count(5)
seven=haiku.count(7)

if five==2 and seven==1:
    print('YES')
    
else:
    print('NO')

Submission status: Accepted

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

if sorted(array) == [5,5,7]:
  print("YES")
else:
  print("NO")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=list(map(int,input().split()))
fivecon=0
sevencon=0
for i in range(3):
  if s[i]==5:
    fivecon+=1
  elif s[i]==7:
    sevencon+=1
    
if fivecon==2 and sevencon==1:
  print("YES")

else:
  print("NO")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from copy import deepcopy
from sys import exit,setrecursionlimit
import math
from collections import defaultdict,Counter,deque
from fractions import Fraction as frac

setrecursionlimit(1000000)


def main():
	a = list(map(int,input().split()))
	if(a.count(5)==2 and a.count(7)==1):
		print('YES')
	else:
		print('NO')
	

def zip(a):
	mae = a[0]
	ziparray = [mae]
	for i in range(1,len(a)):
		if(mae != a[i]):
			ziparray.append(a[i])
			mae = a[i]
	return ziparray

def is_prime(n):
	if n < 2: return False

	for k in range(2, int(math.sqrt(n)) + 1):
		if n % k == 0:
			return False

	return True

def list_replace(n,f,t):
	return [t if i==f else i for i in n]

def base_10_to_n(X, n):
	X_dumy = X
	out = ''
	while X_dumy>0:
		out = str(X_dumy%n)+out
		X_dumy = int(X_dumy/n)
	if(out == ''): return '0'
	return out

def gcd(l):
	x = l.pop()
	y = l.pop()
	while(x%y!=0):
		z = x%y
		x = y
		y = z
	l.append(min(x,y))
	return gcd(l) if len(l) > 1 else l[0]

class Queue():
	def __init__(self):
		self.q = deque([])
	def push(self,i):
		self.q.append(i)
	def pop(self):
		return self.q.popleft()
	def size(self):
		return len(self.q)
	def debug(self):
		return self.q

class Stack():
	def __init__(self):
		self.q = []
	def push(self,i):
		self.q.append(i)
	def pop(self):
		return self.q.pop()
	def size(self):
		return len(self.q)
	def debug(self):
		return self.q

class graph():
	def __init__(self):
		self.graph = defaultdict(list)
	def addnode(self,l):
		f,t = l[0],l[1]
		self.graph[f].append(t)
		self.graph[t].append(f)
	def rmnode(self,l):
		f,t = l[0],l[1]
		self.graph[f].remove(t)
		self.graph[t].remove(f)
	def linked(self,f):
		return self.graph[f]

class dgraph():
	def __init__(self):
		self.graph = defaultdict(set)
	def addnode(self,l):
		f,t = l[0],l[1]
		self.graph[f].append(t)
	def rmnode(self,l):
		f,t = l[0],l[1]
		self.graph[f].remove(t)
	def linked(self,f):
		return self.graph[f]

main()

Submission status: Accepted

Solution code:

def main():
    data = input()
    if data in ['5 7 5', '5 5 7', '7 5 5']:
        print('YES')
    else:
        print('NO')


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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: Accepted

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

Submission status: Accepted

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

if (a + b + c) == 17:
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
x=input()

if x.count("7") == 1:
  if x.count("5") == 2:
    print("YES")
    exit(0)
    
print("NO")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

if s.count('7') == 1:
    if s.count('5') == 2:
        print('YES')

        exit(0)

print('NO')

Submission status: Accepted

Solution code:
from collections import Counter
abc = input().rstrip()
c = Counter(abc)
if c['5'] == 2 and c['7'] == 1:
  print('YES')
else:
  print('NO')

Submission status: Accepted

Solution code:

S = input()
S0 = int(S[0])
S1 = int(S[2])
S2 = int(S[4])
if (S0*S1*S2)%(5*7*5)==0:
    print("YES")
else :
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
numlist = list(map(int,input().split()))
if max(numlist) == 7 and min(numlist) == 5 and sum(numlist) == 17:
  print('YES')
else:
  print('NO')