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):
a = input().split()
print('YES' if '7' in a and a.count('5') == 2 else 'NO')

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

Solution (Python):
a = [int(i) for i in input().split()]
a.sort()
if a == [5, 5, 7]:
    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):
abc = list(map(int, input().split()))
print('YES' if abc.count(5)==2 and abc.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):

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

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

Solution (Python):

a, b, c = map(int, input().split())
if((a+b+c)==17 and max(a,b,c)==7 and min(a,b,c)==5):
    print("YES")
else:
    print("NO")

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

Solution (Python):


l = list(input().split())

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

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

if (num[0]*num[1]*num[2] == (5*5*7)) :
 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):
a, b, c = input().split()
nums = sorted([a, b, c])
if nums[0] == nums[1] == '5' and nums[2] == '7':
    print('YES')
else:
    print('NO')

Solution (Python):





arr = input().split()
arr = map(int, arr)
haiku = [5, 7, 5]

for a in arr:
	if a in haiku:
		haiku.remove(a)
ans = 'YES' if not haiku else 'NO'

print(ans)

Solution (Python):
a, b, c = map(int, input().split())
five = 0
seven = 0
check = [a, b, c]
for s in check:
    if s == 5:
        five += 1
    if s == 7:
        seven += 1
if five == 2 and seven == 1:
    print('YES')
else:
    print('NO')

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

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




if input_str == [7, 5, 5] or input_str == [5, 7, 5] or input_str == [5, 5, 7]:
    print('YES')
else:
    print('NO')

Solution (Python):
input_str = ''.join(list(map(str, input())))
if input_str == '7 5 5' or input_str == '5 7 5' or input_str == '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):
a,b,c=list(map(int,input().split()))
if a*b*c==175:
	print("YES")
else:
	print("NO")

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

Solution (Python):
haiku=list(map(int,input().split()))
haiku.sort()
if haiku==[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):
a=[int(x) for x in input().split()]

if 7 in a:
  a.remove(7)
  
if a==[5,5]:
  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):
def main() -> None:
    A, B, C = map(int, input().split())
    l = [A, B, C]
    l.sort()
    if l[0] == 5 and l[1] == 5 and l[2] == 7:
        print("YES")
    else:
        print("NO")


if __name__ == '__main__':
    main()

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

Solution (Python):
from itertools import combinations, product


def gcd(a, b):
    if a < b:
        a, b = b, a
    while b != 0:
        a, b = b, a % b
    return a

def lcm(a, b):
    return a * b // gcd(a, b)


def get(fmt):
    ps = input().split()
    r = []
    for p, t in zip(ps, fmt):
        if t == "i":
            r.append(int(p))
        if t == "f":
            r.append(float(p))
        if t == "s":
            r.append(p)
    if len(r) == 1:
        r = r[0]
    return r

def put(*args, **kwargs):
    print(*args, **kwargs)


def rep(n, f, *args, **kwargs):
    return [f(*args, **kwargs) for _ in range(n)]
    
def rep_im(n, v):
    return rep(n, lambda: v)
    
YES_NO = ["NO", "YES"]


v = sorted(get("iii"))
put(YES_NO[v == [5, 5, 7]])

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

Solution (Python):
abc = list(map(int, input().split()))
print("YES" if sorted(abc) == [5,5,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):
A,B,C = map(int, input().split())
if A*B*C/175==1:
  print("YES")
else:
  print("NO")

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

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

if C < A:
    A ,C = C, A

if C < B:
    B, C = C, B

if A != 5 or B != 5 or C != 7:
    print("NO")
else:
    print("YES")

Solution (Python):
x = input();
cnt5=0;
cnt7=0;
for i in x:
    if i == '5':
        cnt5=cnt5+1
    else:
        if i == '7':
            cnt7=cnt7+1
if cnt5 == 2 and cnt7 == 1:
    print('YES')
else:
    print('NO')

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

Solution (Python):

data = list(map(str, input().split()))
if data.count('5') == 2 and data.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 = sorted(list(map(int,input().split())))

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

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

Solution (Python):
A, B, C = map(int, input().split())
flag = False
if A == 7:
	if B == C and (B == 5 or C == 5):
		flag = True

elif B == 7:
	if A == C and (A == 5 or C == 5):
		flag = True

elif C == 7:
	if A == B and (A == 5 or B == 5):
		flag = True		

print("YES") if flag == True else print("NO")

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

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

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

Solution (Python):


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

ans="NO"
li.sort()
if li[0]==5 and li[1]==5 and li[2]==7:
    ans="YES"

print(ans)

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

Solution (Python):
A,B,C=map(int,input().split())
five=0
seven=0
for i in [A,B,C]:
  if i==5:
    five+=1
  elif i==7:
    seven+=1
if five==2 and seven==1:
  print("YES")
else:
  print("NO")

Solution (Python):
A, B, C = map(int, input().split())
five = 0
seven = 0
for i in [A,B,C]:
    if i == 5:
        five += 1
    if i == 7:
        seven += 1

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

Solution (Python):
from sys import stdin
l = [int(x) for x in stdin.readline().rstrip().split()]
l.sort()
if l[0] == 5 and l[1] == 5 and l[2] == 7:
  print('YES')
else:
  print('NO')

Solution (Python):
a = [int(i) for i in 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,b,c = map(int,input().split())

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

Solution (Python):
ABC = sorted([int(n) for n in input().split()])





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

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

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

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

five = 0
seven = 0

for n in [a,b,c]:
    if n == '5':
        five += 1
    elif n == '7':
        seven += 1

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

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

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

Solution (Python):
a = list(map(int, input().split()))
d = 0
e = 0
for i in range(3):
  f = a[i]
  if f == 7:
    d += 1
  elif f == 5:
    e += 1
  else:
    break
if d == 1 and e == 2:
  print("YES")
else:
  print("NO")

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

five = X.count('5')
seven = X.count('7')

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

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

Solution (Python):
l = [0]*11
r = list(map(int,input().split()))
for i in r:
  l[i] += 1
print("YES" if (l[5]==2)and(l[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 == 7 and b == 5 and c == 5:
    print('YES')
elif a == 5 and b == 7 and c == 5:
    print('YES')
else:
    print('NO')

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

Solution (Python):
import collections
abc = [int(i) for i in input().split()]
c = collections.Counter(abc)
if c[5] == 2 and c[7] == 1:
    print('YES')
else:
    print('NO')

Solution (Python):

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

Solution (Python):
a = input().split()
for i in range(3):
  a[i] = int(a[i])
a.sort()

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

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

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

Solution (Python):
abc = map(int, input().split())
data = [0,0]
for i in abc:
  if i == 5:
    data[0] += 1
  elif i == 7:
    data[1] += 1

if data == [2,1]:
  print("YES")
else:
  print("NO")

Solution (Python):
import numpy as np
a, b, c = map(int, input().split()) 
nums = [a,b,c]
list5 = [num for num in nums if num == 5]
list7 = [num for num in nums if num == 7]
if (len(list5)==2 and len(list7)==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):
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):
a=list(map(int,input().split()))
a.sort()
print("YES" if (a[0]==a[1]==5 and a[2]==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):
lst = list(map(int, input().split()))
c5 = c7 = 0
for x in lst:
    if x == 5:
        c5 += 1
    elif x == 7:
        c7 += 1
if c5 == 2 and c7 == 1:
    print("YES")
else:
    print("NO")

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

Solution (Python):
lst = sorted([int(x) for x in input().split()])
if lst[0] == 5 and lst[1] == 5 and lst[2] == 7:
    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):
a,b,c=map(int,input().split())
print("YES" if a+b+c==17 else "NO")

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

Solution (Python):
import fileinput

def main(arg_list):
    if(len(arg_list) == 3 and arg_list.count('5')==2 and arg_list.count('7') == 1):
        print("YES")
        return 
    print("NO")

if __name__ == "__main__":
    for line in fileinput.input():
        main(line.rstrip("\n\r").split(" "))

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

Solution (Python):
if sorted(list(map(int,input().split()))) == [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()
if s.count('5') == 2 and s.count('7') == 1:
    print('YES')
else:
    print('NO')

Solution (Python):
a = sorted(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()))
n = sum(x == 7 for x in a)
k = sum(x == 5 for x in a)
if n == 1 and k == 2:
    print("YES")
else:
    print("NO")

Solution (Python):
s=input().split()
count=0
for n in range(3):
    if s[n]=="5":
        count+=1
    elif s[n]=="7":
        continue
    else:
        count=3
        break
if count==2:
    print("YES")
else:
    print("NO")

Solution (Python):
A, B, C = [int(i) for i in input().split()]

five = 0
seven = 0
for x in [A, B, C]:
    if x == 5:
        five += 1
    elif x == 7:
        seven += 1

ans = five == 2 and seven == 1

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

Solution (Python):
phase = input().rstrip().split(" ")
count5 = count7 = 0
for i in phase:
  if i == "5":
    count5 += 1
  elif i == "7":
    count7 += 1
if count5 == 2 and count7 == 1:
  print("YES")
else:
  print("NO")

Solution (Python):
s = input().split() 
five = 0
seven = 0
for i in range(3):
    if s[i] == '5':
        five += 1
    if s[i] == '7':
        seven += 1
        
if five == 2 and seven == 1:
    print('YES')
else:
    print('NO')

Solution (Python):

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

Solution (Python):

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



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

Solution (Python):
a,b,c=input().split()
d=a+b+c
if d.count("7")==1 and d.count("5")==2:
    print("YES")
else:
    print("NO")

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

if(hoge.count("5")==2 and hoge.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):
li = [int(i) for i in input().split()]
print("YES" if li.count(7) == 1 and li.count(5) == 2 else "NO")

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

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

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

Solution (Python):
a,b,c=map(int,input().split())
l={5:0,7:0}
l[a]=1
if not b in l:
  l[b]=0
l[b]+=1
if not c in l:
  l[c]=0
l[c]+=1

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

Solution (Python):
""" AtCoder """

l = list(input().split())

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

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

Solution (Python):
A=map(int,input().split())
r=0
o=0
for s in A:
    if s==5:
        r+=1
    if s==7:
        o+=1

print("YES") if r==2 and o==1 else print("NO")

Solution (Python):
print('YNEOS'['7 7'in input()::2])

Solution (Python):
ans = [5, 5, 7]
haiku = [int(i) for i in input().split()]

haiku.sort()

if ans == haiku:
    print('YES')
else:
    print('NO')

Solution (Python):
li = list(map(int,input().split()))
count5 = 0
count7 = 0

for number in li :
  if number == 5 :
    count5 += 1
  elif number == 7:
    count7 += 1

if count5 == 2 and count7 == 1 :
  print('YES')
else:
  print('NO')

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

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

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

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

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

Solution (Python):
from collections import Counter

m = map(int, input().split())
cm = Counter(m)
if len(cm) == 2 and cm[5] == 2 and cm[7] == 1:
    print('YES')
else:
    print('NO')

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

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

def solve():
    if ABC.count(5) == 2 and ABC.count(7) == 1:
        return "YES"
    else:
        return "NO"

print(solve())

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

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

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

li.sort()

ans = 'YES' if li == [5, 5, 7] else 'NO'


print(ans)

Solution (Python):

a=list([int(i) for i in input().split()])
print('YES' if sorted(a)==[5,5,7] else 'NO')

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

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

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

Solution (Python):
l=sorted(map(int,input().split()))
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())
flag = 0

if A+B+C == 17:
  if abs(A-B) == 0 and C == 7:
    flag = 1
  elif abs(A-B) == 2 and C == 5:
    flag = 1
  
if flag == 1:
  print('YES')
else:
  print('NO')

Solution (Python):
nums = list(map(int,input().split()))
if sum(nums) == 17 and 5 in nums and 7 in nums:
    print('YES')
else:
    print('NO')

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

Solution (Python):
inpstr = input()

inp = inpstr.split(" ")
inp = list(map(int,inp))

c5 = 0
c7 = 0
for i in inp:
  if i==5:
    c5 += 1
  elif i==7:
    c7 += 1
if c5 == 2 and c7 == 1:
  print('YES')
else:
  print('NO')

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

Solution (Python):
inpt = input().split()
inpt.sort()

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

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

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

Solution (Python):
abc = list(map(int, input().split()))
lengths = [0,0]
for i in abc:
    if i == 5: lengths[0] += 1
    if i == 7: lengths[1] += 1

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

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

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

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

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

Solution (Python):
input_list = sorted(map(int, input().rstrip().split()))

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

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

Solution (Python):
haiku_list = ['5', '7', '5']

str_input_list = input().rstrip().split(' ')

for a in range(3):
    if haiku_list[a] in str_input_list:
        str_input_list.remove(haiku_list[a])
        haiku_list[a] = '*'

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

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

Solution (Python):
a,b,c=map(int,input().split())
list=[]
ans=0
list.append(a)
list.append(b)
list.append(c)
for i in range(3):
    if list[i]==5:
        ans+=1
    elif list[i]==7:
        ans+=10
print("YES" if ans==12 else "NO")

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

Solution (Python):
L=list(map(int,input().split()))
table=[5,5,7]
L=sorted(L)
if table == L:
  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 = 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):
def execute(s):
    return ['NO', 'YES'][s.count('5') == 2 and s.count('7') == 1]


if __name__ == '__main__':
    print(execute(input()))

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

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

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

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

Solution (Python):
li = list(map(int, input().split()))
li.sort()
if li[0] == li[1] == 5 and li[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 = 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()))

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

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

print("YES" if ABC.count(5)==2 and ABC.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):
l = input()
if l.count("5") == 2 and l.count("7") == 1:
  print("YES")
else:
  print("NO")

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

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

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

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

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

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

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

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

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

Solution (Python):
x = sorted([int(x) for x in input().split()])
if x == [5, 5, 7]:
    print('YES')
else:
    print('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):
s = input()
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==7 and b==5 and c==5) or (a==5 and b==7 and c==5) or (a==5 and b==5 and c==7): print('YES')
else: print('NO')

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

Solution (Python):



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

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


if __name__ == '__main__':
    main()

Solution (Python):
a, b, c = map(int, input().split())
five = 0
seven =0
if a == 5:
  five = five + 1;
elif a == 7:
  seven = seven + 1;
if b == 5:
  five = five + 1;
elif b == 7:
  seven = seven + 1;
if c == 5:
  five = five + 1;
elif c == 7:
  seven = seven + 1;
if five == 2 and seven == 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):
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):
print(['NO','YES'][list(sorted(input().split()))==['5','5','7']])

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

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

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

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

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

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

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

dat.sort()

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

Solution (Python):
f = False
a = input().split(' ')
for i in range(3):
  a[i]=int(a[i])
while True:
  for i in range(3):
    if a[i] != 5 and a[i] != 7:
      print('NO')
      f = True
      break
  if f == True:
    print(2)
    break
  if a[0] + a[1] + a[2] == 17:
    print('YES')
    break
  else:
    print('NO')
    break

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

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

nlist = [A, B, C]
nlist2 = sorted(nlist)
if nlist2[2] == 7:
    if nlist2[0] == nlist2[1] == 5:
        print('YES')
    else:
        print('NO')
else:
    print('NO')

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

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

Solution (Python):
A,B,C=map(int,input().split())
list=[A,B,C]
list.sort()
if([5,5,7]==list):
    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):
A, B, C = map(int, input().split())
li = [A, B, C]
li.sort()
print('YES' if li == [5, 5, 7] else 'NO')

Solution (Python):


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

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

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

l.sort()

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

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


if __name__ == "__main__":
    main()

Solution (Python):
a, b, c = map(int, input().split())
l = [a, b, c]
l.sort()
if l == [5, 5, 7]:
    print('YES')
    exit()
print('NO')

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

Solution (Python):



def main():
    """Function."""
    line = list(map(int, input().split()))

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


if __name__ == "__main__":
    main()

Solution (Python):
d= input().rstrip()
d_list = d.split(" ")

def solution(d_list):
    if d_list.count("5") !=2:
        return "NO"
    else:
        if d_list.count("7") !=1:
            return "NO"
        else:
            return "YES"
            
def main():
    print(solution(d_list))
    
if __name__ == '__main__':
    main()

Solution (Python):
from statistics import mean, median,variance,stdev
import sys
import math

x = input().split()

a = []
for i in range(len(x)):
   a.append(int(x[i]))

a.sort()
if a[0]*a[1] == 25 and a[2]==7:print("YES")
else: print("NO")

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

if [a,b,c].count('5') == 2 and [a,b,c].count('7') == 1:
    print('YES')
else:
    print('NO')

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

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