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

Solution (Python):
s = input()
if s == "5 5 7" or s == "5 7 5" or s == "7 5 5":
    print("YES")
else:
    print("NO")

Solution (Python):



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,5,5)

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

Solution (Python):
A = list(map(int, input().split()))
a = sorted(A)

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

Solution (Python):
A = list(map(int, input().split()))
five_cnt = 0
seven_cnt = 0

for a in A:
    if a == 5:
        five_cnt += 1
    elif a == 7:
        seven_cnt += 1

if five_cnt == 2 and seven_cnt == 1:
    print('YES')
else:
    print('NO')

Solution (Python):
String=list(map(int,input().split(" ")))

seven=0
five=0
for i in String:
	if i==7:
		seven+=1

	elif i==5:
		five+=1

if seven==1 and five==2:
	print("YES")

else:
	print("NO")

Solution (Python):

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

Solution (Python):
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)

Solution (Python):
def resolve():
    abc = input()
    print("YES" if abc.count("5") == 2 and abc.count("7") == 1 else "NO")


if __name__ == "__main__":
    resolve()

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

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

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

if A+B+C==17:
    print('YES')
else :
    print('NO')

Solution (Python):
s = sorted([int(i) for i in input().split()])
haiku = [5, 5, 7]
if s == haiku:
    print('YES')
else:
    print('NO')

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

if sum(ABC) == 17:
    print('YES')
else:
    print('NO')

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

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

Solution (Python):
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')

Solution (Python):

 
x, y, z = list(map(int, input().split()))
if x == 5 and y == 7 and z == 5:
  print("YES")
elif x == 7 and y == 5 and z == 5:
  print("YES")
elif x == 5 and y == 5 and z == 7:
  print("YES")
else:
  print("NO")

Solution (Python):
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' )

Solution (Python):
a,b,c = map(int, input().split())
print('YES' if a+b+c==17 else 'NO')

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

Solution (Python):
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')

Solution (Python):
import sys
input = sys.stdin.readline

def main():
    a = sorted(list(map(int, input().split())))

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

if __name__ == "__main__":
    main()

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

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

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

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

Solution (Python):
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')

Solution (Python):

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

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

Solution (Python):
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")

Solution (Python):
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')

Solution (Python):
A, B, C = input().split()
print("YES" if "575" in {A+B+C, A+C+B, B+A+C, B+C+A, C+A+B, C+B+A} else "NO")

Solution (Python):
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")

Solution (Python):

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

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

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

Solution (Python):
S=input()
print(("NO","YES")[S.count("7")==1 and S.count("5")==2])

Solution (Python):
inputs = list(map(str, input().split()))

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

Solution (Python):
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")

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

Solution (Python):
A,B,C = input().split()
A = int(A)
B = int(B)
C = int(C)
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')

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

if A == 7:
    if B == C and B == 5:
        print('YES')
    else:
        print('NO')

elif B == 7:
    if A == C and A == 5:
        print('YES')
    else:
        print('NO')

elif C == 7:
    if A == B and A == 5:
        print('YES')
    else:
        print('NO')

else:
    print('NO')

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

Solution (Python):
s = sorted([int(x) for x in input().split()])
print("YES" if s==[5,5,7] else "NO")

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

Solution (Python):
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')

Solution (Python):
def f(data):
  for i in range(3):
    if 0 > int(data[i]) or int(data[i]) > 10:
      print ("NO")

  if int(data[0]) == 5:
    if int(data[1])== 5:
      if int(data[2]) == 7:
        print ("YES")
      else:
        print("NO")
        
    elif int(data[1]) == 7:
      if int(data[2]) == 5:
          print ("YES")
      else:
        print("NO")
        
  elif int(data[0]) == 7:
    if int(data[1]) == 5:
      if int(data[2]) == 5:
          print ("YES")
      else:
          print("NO")
    else:
        print("NO")
  else:
    print("NO")

data = input().split()
if len(data) == 3:
  f(data)
else:
    print("NO")

Solution (Python):
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')

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

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

Solution (Python):
a,b,c = (int(x) for x in 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")

Solution (Python):
print("YNEOS"[["5","5","7"]!=sorted(input().split())::2])

Solution (Python):
print(["YES","NO"][input().split().count("5")==1])

Solution (Python):
abc = list(input().split())

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

Solution (Python):
a,b,c=map(int,input().split())
s = str(a)+str(b)+str(c)

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

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

Solution (Python):

 
num = list(map(int, input().split()))
if (num.count(5)) == 2:
    print("YES")
else:
    print("NO")

Solution (Python):
n=input().split();print('YNEOS'[n.count('5')!=2 or n.count('7')!=1::2])

Solution (Python):
a,b,c=sorted(input().split());print('YNEOS'[a!='5'or b!='5'or c!='7'::2])

Solution (Python):
a,b,c = map(int,input().split())
print('YES' if (a+b+c)==17 else 'NO')

Solution (Python):
abcSet = list(map(int,input().split()))

abcSet.sort()

test = [5,5,7]

if abcSet == test:
    print('YES')
else:
    print('NO')

Solution (Python):
a,b,c = map(int,input().split())
print('YES' if (a+b+c)==17 else 'NO')

Solution (Python):
i = list(map(int, input().split()))
if i[0] == 7:
  if i[1] == 5 and i[2] ==5:
    print('YES')
  else:
    print('NO')
elif i[0] == 5:
  if (i[1] == 7 and i[2] == 5) or (i[2] == 7 and i[1] == 5):
    print('YES')
  else:
    print('NO')
else:
  print('NO')

Solution (Python):
mylist = list(input().split())

list_575 = ["5", "7", "5"]

for l in mylist:
    if l in list_575:
        list_575.remove(l)
    else:
        print("NO")

if len(list_575) == 0:
    print("YES")

Solution (Python):
A = list(map(int,input().split()))

r5=0
r7=0
for num in A:
    if num == 5:
        r5+=1
    elif num==7:
        r7+=1

if r5==2 and r7==1:
    print("YES")
else:
    print("NO")

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

Solution (Python):
abc = [int (x) for x in input().split()]
abc.sort()
print('YES' if abc == [5, 5, 7] else 'NO')

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

Solution (Python):
import collections

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

s_num = collections.Counter(s)
if s_num[5] == 2 and s_num[7] == 1:
    print("YES")
else:
    print("NO")

Solution (Python):
a, b, c = map(str, input().split())
s = a+b+c

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

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

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

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

Solution (Python):
a = sorted([int(_) for _ in input().split()])
if len(a) == 3 and all(1 <= i <= 10 for i in a):
    print('YES' if a[0] == a[1] == 5 and a[2] == 7 else 'NO')
else:
    print('hoge!')

Solution (Python):
print('NYOE S'['557'==''.join(sorted(input()[::2]))::2])

Solution (Python):
print('NYOE S'[['5','5','7']==sorted(input()[::2])::2])

Solution (Python):
print(['NO','YES'][['5','5','7']==sorted(input()[::2])])

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

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

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

Solution (Python):
import sys
a,b,c=map(int,input().split())
if a == 5:
    if b == 5:
        if c == 7:
            print('YES')
            sys.exit()
    elif b==7:
        if c == 5:
            print('YES')
            sys.exit()
if a == 7:
    if b==c==5:
        print('YES')
        sys.exit()
print('NO')

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

Solution (Python):
A,B,C = map(int,input().split(" "))
if A == 7 or B == 7 or C == 7:
    if A == 5 or B ==5 or C ==5:
        if A+B+C==17:
            print("YES")

        else:
            print("NO")
    else:
        print("NO")
else:
    print("NO")

Solution (Python):
s=input()
fcount,scount=0,0
list=s.split(' ')
for i in list:
    if i=='5':
        fcount+=1
    elif i=='7':
        scount+=1
if fcount==2 and scount==1:
    print('YES')
else:
    print('NO')

Solution (Python):

"""
Created on Sat Sep  7 12:03:54 2019

@author: ask07
"""

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

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

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

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

Solution (Python):
a = list(input().split())
a.sort()
if a[0]=='5' and a[1]=='5' and a[2]=='7':
    print("YES")
else:
    print("NO")

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

Solution (Python):
import sys

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

li = na()
li.sort()
print('YES' if li[0] == 5 and li[1] == 5 and li[2] == 7 else 'NO')

Solution (Python):
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')

Solution (Python):
import numpy as np
x=input()
x=x.split(' ')
y=np.sort([int(i) for i in x])
if all(y == np.array([5,5,7])):
    print('YES')
else:
    print('NO')

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

Solution (Python):
import itertools

A, B, C = map(int, input().split())
l = [A, B, C]
p = itertools.permutations(l)
flag = False
for i in p:
    if i == (5, 7, 5):
        flag = True
if flag:
    print('YES')
else:
    print('NO')

Solution (Python):
l = input()
print('YES' if l.count('5')==2 and l.count('7')==1 else 'NO')

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

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

Solution (Python):
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)

Solution (Python):
a,b,c = map(int,input().split())
if a+b+c == 17 and a*b*c == 175:
  print("YES")
else:
  print("NO")

Solution (Python):
a, b, c = [int(str) for str in input().split(" ")]
counter5 = 0
counter7 = 0

for num in [a, b, c]:
  if num == 5:
    counter5 += 1
  elif num == 7:
    counter7 += 1

if (counter5 == 2) and (counter7 == 1):
  print("YES")
else:
  print("NO")

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

a = int(s[0])
b = int(s[1])
c = int(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")

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

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

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

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

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

Solution (Python):
a,b,c=map(int,input().split())
if a+b+c==17 and a*b*c==175:
    print('YES')
else:
    print('NO')

Solution (Python):
a, b, c = map(int, input().split())
flag1 = False
flag2 = False
flag3 = False
if a == 5 or b == 5 or c == 5:
    flag1 = True
if a == 7 or b == 7 or c == 7:
    flag2 = True
if a + b + c == 17:
    flag3 = True

if flag1 and flag2 and flag3:
    print('YES')
else:
    print('NO')

Solution (Python):
def main():
  core = {5: 2, 7:1}
  data = {}
  for x in [int(x) for x in raw_input().split(' ')]:
    if x not in data:
      data[x] = 0
    data[x] += 1
  for key, val in data.items():
    if not (core.get(key, 0) > 0 and core[key] == val):
      print("NO")
      return
  print("YES")
      

main()

Solution (Python):
a, b, c = [int(i) for i in input().split()]
if a*b*c == 175:
  print('YES')
else:
  print('NO')

Solution (Python):
def slove():
    import sys, collections
    input = sys.stdin.readline
    a = dict(collections.Counter(list(map(int, input().rstrip('\n').split()))).most_common())
    print("YES" if a[5] == 2 and a[7] == 1 else "NO")


if __name__ == '__main__':
    slove()

Solution (Python):



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


ans.sort()


print('YES' if ans == [5, 5, 7] else 'NO')

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

Solution (Python):
def main():

    A, B, C = map(int, input().split())
    d = dict()
    for i in [A, B, C]:
        d[i] = d.get(i, 0) + 1
    if d[5] == 2 and d[7] == 1:
        return "YES"
    return "NO" 

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

Solution (Python):
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")

Solution (Python):



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

Solution (Python):
A,B,C = map(int, input().split())
list_num = [A,B,C]
list_num.sort()

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

Solution (Python):
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")

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

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

Solution (Python):


f_count = 2
s_count = 1
haikuflag = False
input_stuck = input().split()
num = [int(input_stuck[0]),int(input_stuck[1]),int(input_stuck[2])]
for i in num:
    if i == 5:
        f_count-=1
    elif i == 7:
        s_count-=1
if f_count == 0 and s_count == 0:
    print('YES')
else:
    print('NO')

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

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

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

Solution (Python):

import sys
import copy
import collections
from bisect import bisect_left
from bisect import bisect_right
from collections import defaultdict
from heapq import heappop, heappush, heapify
import math
import itertools
import random
 




 
INF = float('inf')
def inputInt(): return int(input())
def inputMap(): return map(int, input().split())
def inputList(): return list(map(int, input().split()))
 
def main():
    A,B,C = inputMap()
    
    tot = A+B+C
    tmp = tot - 7
    if max(A,B,C) == 7 and min(A,B,C) == 5 and tmp == 10:
        print("YES")
    else:
        print("NO")
    
if __name__ == "__main__":
	main()

Solution (Python):
w=str(input())
if w.count("5")==2 and w.count("7")==1:
  print("YES")
else:
  print("NO")

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

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

print('YES' if ABC[0] * ABC[1] * ABC[2] == 175 else 'NO')

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

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

Solution (Python):
l=[int(i) for i in input().split()]

ans='NO'
if l.count(5)==2:
  if l.count(7)==1:
    ans='YES'
    
print(ans)

Solution (Python):
print('YNEOS'[sorted(input().split())!=['5','5','7']::2])

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

if ((a == 7) & (b == 5) & (c == 5)) | ((a == 5) & (b == 7) & (c == 5)) | ((a == 5) & (b == 5) & (c == 7)):
  print("YES")
else:
  print("NO")

Solution (Python):
seven_count = 0
five_count = 0
s = input().split()
for number in s:
    if number == "5":
  	    five_count += 1
    elif number == "7":
        seven_count += 1
if seven_count == 1 and five_count == 2:
  	print("YES")
else:
  	print("NO")

Solution (Python):
num_list = input().split()
five_count = num_list.count("5")
seven_count = num_list.count("7")

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

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

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

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

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

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

Solution (Python):
k=input().split()
k.sort()
if k[0]==k[1]=="5" and k[2]=="7":
  print("YES")
else:
  print("NO")

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

Solution (Python):
l = [int(i) for i in input().split()]
print("YES" if l.count(5) == 2 and l.count(7) == 1 else "NO")

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

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

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

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

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

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

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

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

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

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

Solution (Python):
str = input()
int_list = str.split(' ')
int_list = [int(x) for x in int_list]
five_count = int_list.count(5)
seven_count = int_list.count(7)
if five_count==2 and seven_count==1:
    print('YES')
else:
    print('NO')

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

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

Solution (Python):
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")

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

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

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

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

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

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

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

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

Solution (Python):
a = str(input())


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

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


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

Solution (Python):
s=input()
fcount,scount=0,0
list=s.split(' ')
for i in list:
    if i=='5':
        fcount+=1
    elif i=='7':
        scount+=1
if fcount==2 and scount==1:
    print('YES')
else:
    print('NO')

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

Solution (Python):
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")

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

Solution (Python):
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')

Solution (Python):
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')

Solution (Python):
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")

Solution (Python):
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")

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

Solution (Python):

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')

Solution (Python):
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')

Solution (Python):
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')

Solution (Python):
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")

Solution (Python):
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')

Solution (Python):
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')

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

Solution (Python):
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()

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

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

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

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

for x in A:
    ans += x

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

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

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

Solution (Python):
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")

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

Solution (Python):
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")

Solution (Python):

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")

Solution (Python):
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')

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

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

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

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

Solution (Python):

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()

Solution (Python):
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()

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

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

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