peterverebics/CodeNet_Python_118 huggingface dataset:
l=list(map(int,input().split()))
if l.count(5)==2 and l.count(7)==1 and len(l)==3:
    print('Yes')
else:
    print('No')
num=input()
moji=num.split(" ")

if int(moji[0])==7 or int(moji[0])==5:
    pass
else:
    print("NO")
    
    if moji[1]==7 or moji[1]==5:
        if int(moji[0])+int(moji[1])+int(moji[2])==19:
            print("YES")
    else:
        print("NO")
a, b, c = map(int, input().split())
def iroha(a,b,c):
    if (a==5 or a==7) and (b==5 or b==7) and (c==5 or c==7) and a+b+c==17:
        if [a,b,c]==[5,7,5]:
            return "NO"
        else:
            return "YES"
    else:
        return "NO"
print(iroha(a,b,c))
ln = sorted(list(map(int, input().split())))
if ln[0] == ln[1] ==5 and ln[2] ==7:
    print('Yes')
else:
    print('No')
a=list(map(int,input().split()))
#a=[map(int,input().split())]
print(a)
if a.count(5)==2 and a.count(7)==1:
    print('YES')
else:
    print('NO')
A, B, C = map(int, input().split())

if (A == 5) & (B == 7) & (C == 5):
    print('YES')
else:
    print('NO')
N = list(map(int,input().split()))
N.sort()
if N[0] == 5:
    if N[1] == 5:
        if N[2] == 7:
            print("Yes")
            exit()
print("No")
nums = list(map(int, input().split()))
if nums.count(5) == 2 and nums.count(7) == 2:
    print("YES")
else:
    print("NO")
yes = lambda boolean: print('YES') if boolean else print('NO')
input_ints = lambda: list(map(int, input().split()))
yes(input_ints().sort() == [5,5,7])
a, b, c = map(int, input().split())

s = a + b + c

if s == 17:
    print("Yes")
else:
    print("No")
S = list(map(int, input().split()))
S.sort()
if S.sort()==[5,5,7]:
  print("YES")
else:
  print("NO")
a = list(map(int, input().split()))
print("YES" if a[0]== a[2] == 5 and a[1] == 7 else "NO")
inp = (input().split())

if inp[0] == inp[1]:
    print("YES")
else:
    print("NO")
A, B, C=map(str,input().split())

x = [int(A), int(B), int(C)]

if (x.count(5) == 2) and (x.count(7) == 1):
    print("Yes")
else:
    print("No")
A, B, C = (int (x) for x in input().split())
abclist = (A, B, C)

if abclist.count(5) == 2 and abclist.count(7) == 1:
    print("Yes")

else: 
    print("No")
X=list(map(int,input().split()))
X.sort(reverse=False)
if X==[5,5,7]:
  print("YES")
else:
  print("NO")
print(X)
s = [int(i) for i in input().split(' ')]

n = [0] * 2

for i in s:
    if i == 5:
        n[0] += 1
    elif i == 7:
        n[1] += 1

if n[0] == 2 and n[1] == 1:
    print('Yes')
else:
    print('No')
a,b,c=input().split()
 
if a==b==5:
  if c==7:
    print("Yes")
  else:
    print("No")
elif a==c==5:
  if b==7:
    print("Yes")
  else:
    print("No")
elif b==c==5:
  if a==7:
    print("Yes")
  else:
    print("No")
else:
  print("No")
A,B,C = list(map(int, input("入力してね:").split()))

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

if A == 7:
    if B == 5:
        if C == 5:
            print("YES")
    else:
        print("NO")
else:
    print("NO")
X=list(map(int,input().split()))
X.sort
if X==[5,5,7]:
  print("YES")
else:
  print("NO")
#!/usr/bin/env python3

import sys
  
if sorted(sys.stdin.read().split(' ')) == ['5', '5', '7']:
  print('YES')
else:
  print('NO')
k = input().split()
k.sort()
if k[0] == '5' and k[1] == '5' and k[2] == '7':
    print('Yes')
else:
    print('No')
a,b,c =map(int,input().split() )
d = a + b + c
e = a * b * c
if(d == 17 and e == 175):
    print("Yes")
else:
    print("No")
A, B, C = map(int, input().split())

s = A, B, C
print('Yes') if s.count(5) == 2 and s.count(7) == 1 else print('No')
abc = list(map(int, input().split()))
if abc.count(5) == 2 and abc.count(7) == 1: print("YES")
else: print("N0")
a, b , c = map(int, input().split())
flag = a*b*c==175 and a+b+c==17 
print('Yes' if flag else 'No')
l = sorted(map(int, input().split()))
if l == [5, 5, 7]:
  ans = 'Yes'
else:
  ans = 'No'
print(ans)
from sys import stdin, stdout

def main():
    line = stdin.readline()
    parts = line.split()
    parts.sort()

    stdout.write('Yes' if int(parts[0])==5 and int(parts[1])==5 and int(parts[2])==7 else 'No')

main()
a, b, c = map(int, input().split())
fiveCount = 0
sevenCount = 0
if a == 5: fiveCount+= 1
if b == 5: fiveCount+= 1
if c == 5: fiveCount+= 1
if a == 7: sevenCount+= 1
if b == 7: sevenCount+= 1
if c == 7: sevenCount+= 1

if fiveCount == 2 and sevenCount == 1:
    print("Yes")
else:
    print("No")
INT_MAX=10**18+7
MOD=10**9+7
def INPUT():return list(int(i) for i in input().split())
def LIST_1D_ARRAY(n):return [0 for _ in range(n)]
def LIST_2D_ARRAY(m,n):return [[0 for _ in range(n)]for _ in range(m)]
#################################################################################
a,b,c=INPUT()
if a==5 and b==7 and c==5:
    print("YES")
else:
    print("NO")
A=list(map(int,input().split()))
A.sort
#print(A)
if A==[5,5,7]:
  print('YES')
else:
  print('NO')
a =list(map(int,input().split()))
if sum(a) == 19 and a.count("7") == 2:
  print("YES")
else:
  print("NO")
iroha = input()
iroha = iroha.split(" ")
iroha = sorted(iroha)
print(iroha)
# -*- coding: utf-8 -*-
A_B_C = list(map(int, input().split()))
if A_B_C == [5,5,7]:
    print('YES')
else:
    print('NO')
ans = []
A, B, C = map(int, input().split())
ans.append(A)
ans.append(B)
ans.append(C)
if ans.count(5) == 2 and ans.count(7) == 1:
    print('Yes')
else:
    print('No')
sort_list = list(map(int, input().split()))
if sort_list.count(5) == 1 and sort_list.count(7) == 2:
  print("YES")
else:
  print("NO")
list = list(input().split())
list.sort()

if list[0] == 5 and list[1] == 5 and list[7] == 7:
    print('Yes')
else:
    print('No')
line = input()

if line == '5 5 7' or line == '7 5 5':
  print('Yes')
  
else:
  print('NO')
List = input().split()

print(List)
if List.count("5") == 2 and List.count("7") == 1:
    print("Yes")
else: print("No")
a,b,c= input().split()
if len(a) == 7:
  if len (b) ==5 and len(c) == 5:
    print ("YES")
  else:
    print ("NO")
else:
  if len(b) != 7 and len(c)!=7:
    print ("NO")
  else:
    if len(b) ==7 and len (c) ==5:
      print ("YES")
    else:
      if len(b) ==5 and len(c) ==7:
        print ("YES")
      else:
        print ("NO")
a = input()
a = [int(i)for i in a.split(" ")]
print((a[0] == 5 or a[0] == 7) and (a[1] == 5 or a[1] == 7) and (sum(a) == 17))
N=list(map(int,input().split()))
if sorted(N)==[5,7,7]:
    print("YES")
else:
    print("NO")
num=input()
moji=num.split(" ")

if int(moji[0])==7 or int(moji[0])==5:
    pass
else:
    print("NO")
    
if moji[1]==7 or moji[1]==5:
	if int(moji[0])+int(moji[1])+int(moji[2])==19:
		print("YES")
else:
	print("NO")
num_list = list(map(int, input().split()))

if num_list.count(5) == 2 and num_list.count(7) == 1:
    print("Yes")

else:
    print("No")
syl=sorted(list(map(int,input().split())))

print(syl)

syl2=[5, 5, 7]

if syl == syl2:
	print('YES')
else:
	print('NO')
a,b,c=input().split()
d=[a,b,c]
print(d.count("5"))
if d.count("5")==2 and d.count("7")==1:
    print("YES")

else:
    print("NO")
abc = list(map(int,input().split()))

if 5 in abc and 7 in abc and abc.count(7)==1:
  print('YES')
else:
  print('NOT')
a,b,c=map(int,input().split())

N5=0
N7=0

if a==5:
  N5 +=1
elif a==7:
    N7 +=1

if b==5:
  N5 +=1
elif b==7:
    N7 +=1
    
if c==5:
  N5 +=1
elif c==7:
    N7 +=1
    
if (N5==2)*(N7==1):
  print('Yes')
else:
    print('No')
a,b,c = map(int,(input().split()))
l = [a,b,c]
if int(l.count(5)) == 2 and int(l.count(7)) == 1:
	print(True)
else:
	print(False)
A,B,C = map(int, input("").split())

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

if A == 7:
    if B == 5:
        if C == 5:
            print("YES")
    else:
        print("NO")
else:
    print("NO")
queue=list(map(int,input().split()))
queue.sort()
if queue[0]==5 and queue[1]==5 and queue[2]==7:
  print("Yes")
else:
  print("No")
def main():
    a, b, c = map(int, input().split())
    list = []
    list.append(a)
    list.append(b)
    list.append(c)

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

if __name__ == '__main__':
    main()
a = list(map(int, input().split()))
if sum(a) == 17 and a.count(5) == 2:
    print("Yes")
else:
    print("No")
li=a,b,c=list(map(int,input().split()))
if li.count(7)==2 and li.count(5)==1:
    print("YES")
else:
    print("NO")
form = input()
form = form.split()

if form == [5,7,5]:
  print("YES")
else:
  print("NO")
L=sorted(map(int, input().split()))
if L==[5, 5, 7]:
  ans='Yes'
else:
  ans='No'
print(ans)
val1=list(map(int,input().split()))

if sum(val1)==17:
  print("OK")
else:
  print("NO")
a = input().split()
five = a.count(5)
seven = a.count(7)

if five == 2 and seven == 1:
  print('YES')
else:
  print('NO')
a, b, c = map(str, input().split())

sor_len_list = sorted([len(a), len(b), len(c)])

if sor_len_list == [5, 5, 7]:
    print('YES')
else:
    print('NO')
word = list(input())
#print(word) ['5', '5', '7']
a=0
b=0
for i in range(3):
    if word[i]==str(5):
        a=a+1
for i in range(3):
    if word[i]==str(7):
        b=b+1
if a==2 and b==1:
	print("YES")
else:
  	print("NO")
a = list(map(int, input().split()))
cnt_five = 0
cnt_seven = 0

for i in range(3):
    if (a[i] == 5):
        cnt_five += 1
    if (a[i] == 7):
        cnt_seven += 1

if(cnt_five == 2 and cnt_seven == 1):
    print('Yes')
else:
    print('No')
def main():
    input_str = input()

    a,b,c = input_str.split(' ')
    a = int(a)
    b = int(b)
    c = int(c)
    flag = False

    for i in [a,b,c,'fin']:
        if i == 'fin':
            if a+b+c== 15:
                flag = True
        elif not i in [5,7]:
            break

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


if __name__=='__main__':
    main()
ABC=input().split()

five_count=ABC.count("5")
seven_count=ABC.count("7")

if five_count == 2 and seven_count==1:
  print("Yes")
else:
  print("NO")
a = input()

if a.count('5') == 2:
    if a.count('7') == 1:
        print('yes')
    else:
        print('no')
else:
    print('no')
a,b,c = map(int,input().split())
if a + b + c == 19:
    print("YES")
else:
    print("NO")
def test(): 
  arr = input()
  arr = arr.split()
  arr = sorted(arr)
  if arr==[5, 5, 7]:
    print("YES")
  else:
    print("NO")  
test()
b = input().split() #aの文字列を空白で区切る
c = [int(s) for s in b] #bのそれぞれの要素に対して数値にしてリストに格納
print(c)
num5 = 0
num7 = 0
for i in range(len(c)):
    if c[i] == 5:
        num5 += 1
        continue
    if c[i] == 7:
        num7 +=1
        continue
if num5 == 2 and num7 == 1:
    print("YES")
else:
    print("NO")
a,b,c=map(int,input().split())
if(a+b+c==17 and a*b*c==25*7):
    print("Yes")
else:
    print("No")
A = list(map(int, input().split()))
A.sort()

print("Yes" if A == [5,5,7] else "No")
lis = sorted(input().split())
print(lis)
if lis == ['5', '5', '7']:
    print('YES')
else:
    print('NO')
ABC = [int(x) for x in input().split()]
S = sorted(ABC)
print(S)
if S[0] == 5 and  S[1] == 5 and  S[2] == 7:
    print('YES')
else:
    print('NO')
def check():
  A = list(map(int, input().split()))
  if A.count(5)!=2 or A.count(7)!=1:
    return 'No'
  return 'Yes'
print(check())
I=input().split()
 
if I[0]=="5" and I[1]=="7" and I[2]=="5":
  print("YES")
else:
  print("NO")
ABC = input().split()
print('YES' if ABC.count('5') == 2 and ABC.count('7') == 1 else 'N0')
import sys, math

def input():
    return sys.stdin.readline()[:-1]

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()
a,b,c = map(int,input().split())#標準入力を行う
if (a == 5 or a== 7):
    if(b == 5 or b == 7):
        if(c == 5 or c == 7):
            if(a + b + c == 17):
                print("YES")
print("NO")
a = []
a = input().split(' ')

if 5 in a:
    a.remove(5)
    if 7 in a:
        a.remove(7)
        if 5 in a:
                print('YES')
        else:
            print('NO')
    else:
        print('NO')
else:
    print('NO')
# list に入力を格納
list = list(map(int, input().split()))
# 小さい順に並び替え
list.sort()

if list[0] == 5 and list[1] == 5 and list[2] == 7:
    print('Yes')
else:
    print('No')
a,b,c = map(int,input().split())
print("YES" if a*b*c == 35 else "NO")
a=input().split()
print('YES'if a.count('5')==2 and a.count('7')==1 else'No')
li = list(map(int, input().split()))
if li == [5, 5, 7]:
  print("YES")
else:
  print("NO")
Number=list(map(int,input().split()))
print(Number)
if Number.count(5)==2 and Number.count(7)==1:
    print("YES")
else:
    print("NO")
str = input()
count5 = str.count('5')
count7 = str.count('7')
if count5 == 2 and count7 == 1:
  print('Yes')
else:
  print('NO')
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')
a = list(map(int, input().split()))

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

a.sort()

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

if (num_list.count(5) == 2) and  (num_list.count(7) == 1):
    print("Yes")

else:
    print("No")
a=list(map(int,input().split()))
if sum(a) == 17:
	a.sort()
	if a[0]==5 and a[1]==5:
		print('Yes')
	else:
		print('No')			
else:
	print('No')
def haiku(sentence_length_list):

    length_five_cnt=0
    length_seven_cnt=0
    for s in sentence_length_list:
        if s=='5':
            length_five_cnt=length_five_cnt+1
        if s=='7':
            length_seven_cnt=length_seven_cnt+1

    if length_five_cnt==2 and length_seven_cnt==1:
        return 'YES'
    else:
        return 'NO'

if __name__=='__main__':
    haiku(input().split())
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")
l,m,n = map(int,input().split())
cnt =0
if l == 5:
  cnt += 1
if m == 7:
  cnt += 1
if l == 5:
  cnt += 1
if cnt == 3:
  print("YES")
else:
  print("NO")
a=list(map(int,input().split()))
if a.count(5)==2:
    if a.count(7)==1:
        print("Yes")
    else:
        print("No")
else:
    print("No")
def test():
  x=input()
  x=x.split()
  if x == ["5","5","7"]:
    print("YES")
  if x == ["5","7","5"]:
    print("YES")
  if x == ["7","5","5"]:
    print("YES")
  else:
    print("NO")

    
test()
list=[int(a) for a in input().split()]
if list.count(5)==2 and list.count(7)==1:
    print("Yes")
else:
    print("No")
def irohachan(A,B,C):
  if (A == 5 or A ==7) and (B == 5 or B ==7) and (C == 5 or C ==7) and (A+B+C ==17):
    print("YES")
  else:
    print("NO")
a=list(input().split())
if a==[5,5,7] or a==[5,7,5] or a==[7,5,5]:
    print("YES")
else:
    print("NO")
nums = list(map(int,input().split()))

for i in [5,7,5]:
    if i in nums:
        nums.remove(i)
    else:
        print("No")
        exit()

if len(nums) == 0:
    print("Yes")
else:
    print("No")
a = sorted(map(int,input().split()))
print('Yes' if a==[5,5,7] else 'No')
list = list(map(int,input().split()))

five = 0
seven = 0

for i in list:
  if i == 5:
    five += 1
  elif i == 7:
    seven += 1
  else:
      pass

if seven == 1 and five == 2:
  print("TRUE")
else:
    print("NO")
a,b,c = map(str, input().split())
if (a==b or b==c or c==a):
  if (not a==b==c): print("YES")
  else: print("NO")
else: print("NO")
a = input()
A = int(a[0])
B = int(a[2])
C = int(a[4])

if(A==5 & B==7 & C==5):
    print('yes')
elif(A==7 & B==5 & C==5):
    print('yes')
elif(A==5 & B==5 & C==7):
    print('yes')
else:
    print('no')
A, B, C = map(int, input().split())
L = []
for i in A,B,C:
    L.append(i)
Ls = sorted(L)
if Ls[0] == 5 and Ls[1] == 5 and Ls[2] == 7:
    print("Yes")
else:
    print("No")
a,b,c = map(int, input().split())
if(a==5 and b==5):
	print("Yes")
elif(b==5 and c==5):
	print("Yes")
elif(a==5 and c==5):
	print("Yes")
else:
	print("No")
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')
if a==7 and b==5 and c==5:
  print('YES')
else:
  print('NO')
a,b,c =input().split()
a = int(a)
b = int(b)
c = int(c)
if a == 5:
  if (b== 7 and c==5) or (b== 5 and c==7):
    print("YES")
elif a == 7:
  if b==5 and c == 5:
    print("YES")
else:
	print("NO")
a = input().split()
print(a)
if a.count('5')==2 and a.count('7')==1:
  print('YES')
else:
  print('NO')
a, b, c = input().split()
print("YES" if sorted([len(a), len(b), len(c)]) == [5, 5, 7] else "NO")
a,b,c= input().split()
if a == 7:
  if b == 5 and c ==5:
    print ("YES")
  else:
    print("NO")
else:
  if b ==7:
    if a ==5 and c ==5:
      print("YES")
    else:
      print("NO")
  else:
    if c !=7:
      print ("NO")
    else:
      if b == 5 and c == 5:
        print ("YES")
      else:
        print ("NO")
a,b,c = (int(x) for x in input().split())

if a==7 and b==5 and c==5:
    print('YES')
elif a==5 and b==5 and c==5:
    print('YES')
elif a==5 and b==5 and c==7:
    print('YES')
else:
    print('NO')
def main():
  print("aaa")
  a = list(input().split())
  a = [int(aa) for aa in a]
  a = sorted(a)
  if a==[5,7,7]:
    return "YES"
  else:
    return "NO"
  
  
if __name__ == "__main__":
  main()
a, b, c = map(int, input().split())
if a+b+c == 19:
    print("Yes")
else:
    print("No")
num = list(map(int, input().split()))

num.sort
if(num[0]==5 and num[1]==5 and num[2] == 7):
    print("YES")
else:
    print("NO")
ls = list(map(str, input().split()))
# ok_list = ['5', '7', '5'] or ['7', '5', '5'] or ['5', '5', '7']

if ls == ['5', '7', '5']:
    print("Yes")
elif ls == ['7', '5', '5']:
    print("Yes")
elif ls == ['5', '5', '7']:
    print("Yes")
else:
    print("No")
A, B, C = map(int, input().split())
MC = [A, B, C]
if MC.count(5)==2 and MC.count(7)==1:
  print("Yes")
else:
  print("No")
from sys import stdin, stdout
from time import perf_counter

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

# import sys
# sys.stdout = open("e:/python/cp/output.txt","w")
# sys.stdin = open("e:/python/cp/input.txt","r")

l = [int(item) for item in input().split()]
resutl = sorted(l)
print("YES" if resutl == l else "NO")
list=[int(i) for i in input().split()]
list1=sorted(list)
if list==[5,5,7]:
  print('YES')
else:
  print('NO')
a,b,c=(map(int,input().split()))
if a==5:
  if b==5:
    if c==7:
      print("YES")
    else:
      print("NO")
  elif b==7:
    if c==5:
      print("YES")
  else:
    print("NO")
elif a==7:
  if b==5 and c==5:
    print("YES")
  else:
    print("NO")
else:
  print("NO")
def main():
    l = list(map(int,(input().split())))
    if l.count(5)==2 and l.count(7) == 1:
        print("Yes")
    else:
        print("No")
main()
p=set(input());print("YNEOS"[p=={" ",5,7}::2])
inp=input().split()
prod = int(inp[0]) * int(inp[1]) * int(inp[2])
resid1 = prod//5
resid2 = prod//7
if (prod == 175) & (resid1==0) & (resid2==0):
  print('YES')
else:
  print('NO')
example = ('5', '7', '5')
five = 0
seven = 0
ipt = []
s = input(">")
s = s.split()

for i in s:
    if i == '5':
        five += 1
    elif i == '7':
        seven += 1

if five == 2 and seven == 1:
    print("YES")
else:
    print("NO")
abc = list(map(int,input().split()))
ans = "No"
if 5 in abc:
  abc.remove(5)
  if 5 in abc and 7 in abc:
    ans = "Yes"

print(ans)
def test(): 
  arr = input()
  arr = arr.split()
  arr = arr.sort()
  if arr==['5', '5', '7']:
    print("YES")
  else:
    print("NO")  
test()
import sys
import math
import bisect

def main():
    A = list(map(int, input().split()))
    A.sort()
    if len(A) == 3 and A == [5, 5, 7]:
        print('Yes')
    else:
        print('No')

if __name__ == "__main__":
    main()
from functools import reduce
from operator import mul

s = reduce(mul, map(int, input().split(' ')))
print('Yes' if s == 175 else 'No')
a = list(map(int,input().split()))
if a.count(5) == 2 and a.count(7) == 1:
  print("yes")
else:
  print("no")
a,b,c=input().split()
ls=[a,b,c]
ls.sort
if ls[0]==ls[1]=="5" and ls[2]=="7":
  print("YES")
else:
  print("NO")
a,b,c = map(int, input().split())

if a==5 and c==7 and c==5:
     print('Yes')
elif a==5 and c==5 and b==7:
     print('Yes')
elif b==5 and c==5 and a==7:
     print('Yes')
else:
 print('No')
ls = list(map(int, input().split()))

if ls == [5, 7, 5]:
    print("Yes")
elif ls == [7, 5, 5]:
    print("Yes")
elif ls == [5, 5, 7]:
    print("Yes")
else:
    print("No")
a, b, c = map(int, input().split())
if a == 5:
  if b == 5 and c == 7:
    print('YES')
  elif b == 7 and c == 5:
    print('YES')
  else:
    print('NO')
else:
  if a == 5 and b == 5:
    print('YES')
  else:
    print('NO')
A,B,C= input().split()
Sum = A + B + C
if Sum == 17:
    print('YES')
else:
    print('NO')
# cook your dish here
abc=list(map(int , input().split()))
# frequency check is used
count=0
element=5
element1=7
frequency1=abc.count(5)
frequency2=abc.count(7)
if(frequency1 == 2):
    if(frequency2 == 1):
        count+=1
        
    else:
        count+=0
        
else:
    count+=0
    
if(count == 1):
    print("Yes")
else:
    print("No")
List = input().split()

if List.count("5") == 2 and List.count("7") == 1:
    print("Yes")
else: print("No")
l = list(map(int,input().split()))
if int(l.count(5)) == 2 and int(l.count(7)) == 1:
	print('Yes')
else:
	print('No')
def check():
  A = list(map(int, input().split()))
  if A.count(7)!=2 or A.count(5)!=1:
    return 'NO'
  return 'YEs'
print(check())
haiku = list(map(int,input().split()))
haiku.sort()
if haiku ==[5,5,7]:
    print("Yes")
else:
    print("No")
ls = sorted(list(map(int, input().split())))

if ls == [5, 5, 7]:
    print("Yes")
else:
    print("No")
A, B, C = map(int, input().split())

if A == 5 and B == 5 and C == 7: print("YES")
if A == 5 and B == 7 and C == 5: print("YES")
if A == 7 and B == 5 and C == 5: print("YES")
else: print("NO")
l = map(int, input().split())
if sorted(l) == [5, 5, 7]:
  ans = 'Yes'
else:
  ans = 'No'
print(ans)
a,b,c = map(int, input().split())

if a==5 and b==7 and c==5:
  print('YES')
else:
  print('NO')
def iroha():
    A, B, C = map(int, input().split())
    S = A + B + C
    if S == 17:
        print("YES")
    else:
        print("NO")
def haiku():
  x=input()
  x=x.split()
  x=x.sort()
  if x==['5','5','7']:
    print("YES")
  else:
    print("NO")

haiku()
A = "ふるいけや"
B = "かわずとびこむ"
C = "いけのおと"

haiku = []
haiku.append(len(A))
haiku.append(len(B))
haiku.append(len(C))
if sum(haiku) == 17:
    if max(haiku) == 7:
        if min(haiku) == 5:
            print("Yes")
        else:
            print("No")        
    else:
        print("No") 
else:
    print("No")
A, B, C = map(int, input().split())

if A == 5 and B == 7 and C == 5:
  print('YES')
else:
  print('NO')
li=list(map(int,input().split()))

if li.count(5)>=2:
  print('Yes')
else:
  print('No')
A=list(map(int,input().split()))
A.sort
if A==[7,5,5]:
  print('YES')
else:
  print('NO')
li = input().split()
print(li)
if ('7' in li) == True:
    if ('5' in li) == True:
        if li[0] == '5':
            if li[1] == '5' or li[2] == '5':
                print("Yes")
            else:
                print("No")
        elif li[1] == '5' and li[2] == '5':
            print("Yes")
        else:
            print("No")
    else:
        print("No")
else:
    print("No")
line = input()

if line == '5 5 7' or line == '7 5 5':
  print('Yes')
  
else:
  print('No')
A,B,C = map(int, input().split())
ABC = [A,B,C]
if sorted(ABC) == [5,5,7]:
    print("Yes")
else:
    print("No")
import sys
input = lambda: sys.stdin.readline().rstrip()
yes = lambda boolean: print('Yes') if boolean else print('No')
input_ints = lambda: list(map(int, input().split()))
numbers = input_ints().sort()
yes(numbers == [5,5,7])
a=list(map(int,input().split()))
if a.index(7)==1 and a.index(5)==5:
    print("YES")
else:
    print("NO")
a=input().strip().split(" ")
b=[int(i) for i in a].sort()
if b == [5,5,7]:
    print("YES")
else:
    print("NO")