peterverebics/CodeNet_Python_118 huggingface dataset:
a = input().split(" ")
a.sort()
if (a[0] == a[1] == "5") and a[2] == "7":
  print("Yes")
else:
  print("No")
a,b,c = map(int,input().split())
d = [a,b,c]
d = sorted(d)
#print(d)
if d ==[5,5,7]:
  print('Yes')
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()
numbers.sort()
yes(numbers == [5,5,7])
a = list(map(int, input().split()))
c7 = 0
c5 = 0
for x in a:
  if x == 7:
    c7 += 1
  if x == 5:
    c5 += 1
if c7 == 1 and c5 == 2:
  print("YES")
else:
  print("N0")
A, B, C = map(int, input().split())
list = [A, B, C]
list.sort()

if list == [5, 5, 7]:
  print("Yes")
else:
  print("No")
#!/usr/bin/env python3

import sys

args = sys.argv[1:]

if len(args) < 3:
    print('NO')
    sys.exit(0)

count5 = [int(x) for x in args ].count(5)
count7 = [int(x) for x in args ].count(7)
if count5 == 2 and count7 == 1:
    print('YES')
else:
    print('NO')
a=list(map(int,input().split()))

b=a[0]+a[1]+a[2]
c=a[0]-a[1]-a[2]

if b==17 and c==-7:
  
  print('YES')

else:
  print('NO')
I=input().split()

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

if a == b and a == 5:
    if c == 7:
        print("Yes")
    else:
        print("No")
elif b == c and b == 5:
    if a == 7:
        print("Yes")
    else:
        print("No")
elif a == c and c == 5:
    if b == 7:
        print("Yes")
    else:
        print("No")
else:
    print("No")
A, B, C = map(int, input().split())

if (A == 5 or 7) & (B == 5 or 7) & (C == 5 or 7):
    if (A + B + C) == 17:
        print('YES')
else:
    print('NO')
a,b,c=map(str,input().split())
if (len(a)==5 and len(b)==5 and len(c)==7) or(len(a)==5 and len(c)==5 and len(b)==7) or (len(c)==5 and len(b)==5 and len(a)==7):
  print("YES")
else:
  print("NO")
l = list(map(int, input().split()))
count = count2 = 0
for i in range(3):
  if(l[i] == 5):
    count+=1
  elif(l[i] == 7):
    count2 += 1
    
if(count == 2 and count2 == 1):
    print("Yes")
else:
	print("NO")
a,b,c = map(int,input().split())

g = 0
if a == 5:
  g = g + 1
if b == 5:
  g = g + 1
if c == 5:
  g = g + 1

h = 0
if a == 7:
  h = h + 1
if b == 7:
  h = h + 1
if c == 7:
  h = h + 1
  
if h == 2 and g == 1:
  print("YES")
else:
  print("NO")
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')
As=input().split()

count5=0
count7=0

for A in As:
    if A=="5":
        count5+=1
    elif A=="7":
        count7+=1

if count5==2 and count7==1:
    print("Yes")
else:
    print("No")
a = list(map(int,input().split()))
if (a[0]==5 and a[1]==5 and a[2]==7)or(a[0]==5 and a[1]==7 and a[2]==5)or(a[0]==7 and a[1]==5 and a[2]==5):
  print("Yes")
else:
  print("No")
li = input().split()
a = li[0]
b = li[1]
c = li[2]
if (a==b or b==c or c==a and not a==b==c): print("YES")
else: print("NO")
A = sorted(list(map(int,input().split())))

if A == [5,5,7]:
    print("Yes")
else:
    print("No")
A = sorted(input().split())
print('YES' if A[0]==5 and A[1]==5 and A[2]==7 else 'NO')
a, b, c = input().split()

cond = (a == '5' and b == '7' and c == '5')

if cond:
    print('YES')
else:
    print('NO')
mylist = [4,7,5]
x = mylist.count(5)
y = mylist.count(7)
 
if x == 2 and y == 1:
  print("YES")
else:
  print("NO")
a, b, c = input().split()

if (a+b+c).count('5')==2 and (a+b+c).count('7')==1:
  print("Yes")
else:
  print("No")
a,b,c = map(int,input().split())
if a == 7:
    if b == 5 and c == 5:
        print('YES')
elif b == 7:
    if a == 5 and c == 5:
        print('YES')
elif c == 7:
    if a == 5 and b == 5:
        print('YES')
else:
    print('NO')
arr = list(map(lambda x: int(x), input().split(" ")))

if arr.count(5) == 2 and arr.count(7) == 1:
    print("OK")
else:
    print("NG")
A, B, C=list(map(int, input().split(" ")))
if ([A, B, C].count(5)==2) and ([A, B, C].count(7)==1):
  print('Yes')
else:
  print('No')
a = list(map(int,input().split()))
if a.count("7")==1 and a.count("5")==2:
  print("YES")
else:
  print("NO")
A, B, C = input().split()
MC = [A, B, C]
if MC.count("5")==2:
  print("Yes")
else:
  print("No")
A = input().split(" ")
A = [int(a) for a in A]

if A.count(5) == 2 and A.count(7) == 1:
    print("Yes")
else:
    print("No")
#空白区切りで複数の値をリストとして入力
input_list = input().split()
#input_listの値を昇順に並び替え
sort_list = sorted(input_list)

print(sort_list)

if(sort_list[0]=="5" and sort_list[1]=="5" and sort_list[2]=="7"):
    print("YES")
else:
    print("NO")
lis = list(map(int, input().split()))
if lis.count(5)==2 and lis.count(7)==1: print('YES')
print('NO')
A, B, C = list(map(int, input().split()))
if (A == 5 and B == 5 and C == 7) or (A == 5 and B == 7 and C == 5) or (A == 5 and B == 5 and C == 7):
    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("Yes")
else:
	print("No")
s = list(map(int, input().split()))
tar = [5,7,5]
for a in s:
    for b in tar:
        if a == b:
            tar.remove(b)
if tar == []:
    print("YES")
else:
    print("NO")
def main():
    if input() == '5 7 5': print('YES')
    else: print('NO')

if __name__ == '__main__':
    main()
a,b,c = map(int,input().split())
if a==7:
    if (b==c) and (b==5):
        print("Yes")
    else : print("No")
else : pass

if b==7:
    if (c==a) and (c==5):
        print("Yes")
    else : print("No")
else : pass

if c==7:
    if (a==b) and (a==5):
        print("Yes")
    else : print("No")
else : print("No")
l = [map(int,input().split())]

if l == [5,5,7] or l == [5,7,5] or l == [7,5,5]:
    print("Yes")
else: print("No")
iroha = list(input().split())
if iroha.count('5') == 2:
  if iroha.count('7') == 1:
    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")
elif a==7 and b==5 and c==5:
  print("Yes")
else:
  print("No")
ABC = list(map(int,input().split()))
if ABC.count('5')==2 and ABC.count('7')==1:
  print('YES')
else:
  print('NO')
#入力
lst = input().split()

#整数値化
for i in lst:
  i = int(i)

#ソート
lst.sort()

#出力
if lst == [5, 5, 7]:
  print('YES')
else:
  print('NO')
print('YNEOS'[eval(input().replace(*' *'))!=245::2])
print(['Yes','No'][sum(list(map(int,input().split()))) != 17])
A = list(map(int, input().split()))
if A.sort() == [5,5,7]:
  print("YES")
else:
  print("NO")
a,b,c=input().split()
if (int(a)+int(b)+int(c)==17 and int(a)<=10 and int(b)<=10 and int(c)<=10):
    if ((int(a)==5 or int(a)==7) and (int(b)==5 or int(b)==7) and (int(c)==5 or int(c==7))):
        print("YES")
    else:
        print("NO")
else:
    print("NO")
A, B, C = list(map(int, input().split()))

s = A, B, C
print('Yes') if s.count(5) == 2 and s.count(7) == 1 else print('No')
a,b,c = input().split()
if ((a and b) == '5' and c == '7') or ((a and c) == '5' and b == '7') or ((b and c) == '5' and a == '7'):
  print('YES')
else:
  print('NO')
a,b,c = map(int,input().split())
if a==7:
    if (b==c) and (b==5):
        print("Yes")
    else : print("No")

if b==7:
    if (c==a) and (c==5):
        print("Yes")
    else : print("No")

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

if s.count(5) == 2 and s.count(7) == 1:
  print('Yes')
else:
  print('No')
def main():
  a = list(input().split())
  a = [int(aa) for aa in a]
  a = sorted(a)
  if a==[5,7,7]:
    print('YES')
  else:
    print('NO')
  
  
if __name__ == "__main__":
  main()
a = input().split(" ")
for i in range(3):
    a[i] = int(a[i])
print(a)
if sorted(a) == [5, 5, 7]:
    print("YES")
else:
    print("NO")
ABC = list(map(int, input().split()))

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

if (A == 5) & (B == 5) & (C == 7):
    print('YES')
else:
    print('NO')
A = input().split()
print("YES" if A.count(5) == 2 and A.count(7) == 1 else "NO")
L = sorted(map(int, input().split()))

if L == [5, 5, 7]:
  ans = 'Yes'
else:
  ans = 'No'
print(ans)
# -*- coding: utf-8 -*-
a = ['5','7','5']
b = input().split()

for i in b:
    try:
        a.remove(i)
    except:
        print('NO')
        quit()

print('OK')
sets = set(map(int, input().split()))
print('YES' if sets == set([5, 7, 5]) else 'NO')
a = [5,7,5]
b = map(int, input().split())

for i in b:
    try:
        b.remove(i)
    except:
        print('NO')
        quit()

print('OK')
A, B, C = map(int, input().split())
if [A, B ,C] == [5,5,7] or [A, B ,C] == [5,7,5] or[A, B ,C] == [7,5,7]:
    print("YES")
else:
    print("NO")
A = sorted(list(map(int, input().split())))
print('YES' if A[0] == 5 and A[1] == 7 and A[2] == 7 else 'NO')
A, B, C = map(int, input().split())

l = [A, B, C]

l = sorted(l, reverse=True)

if l[0] == l[1] == 5 and l[2] == 7:
    print('YES')
else:
    print('NO')
A,B,C = list(input().split())

count = 0
if A == "7":
    count += 1
if B == "7":
    count += 1
if C == "7":
    count += 1

if count == 1:
    print("Yes")
else:
    print("No")
abc = input().split()

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

n = [0] * 5

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=map(int,input().split())
if a==5 or a==7 and b==5 or b==7 and c==5 or c==7:
    print('YES')
else:
    print('NO')
s = list(map(int, input().split()))
if s[0] == 5 and s[1] == 7 and s[2]  == 5:
  print("YES")
else:
  print("NO")
def main():
    if sorted(input().split()) == [5,5,7]: print('YES')
    else: print('NO')

if __name__ == '__main__':
    main()
form = input()

if form == [5,7,5]:
  print("YES")
else:
  print("NO")
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 c==7:
  print("YES")
else:
  print('NO')
A = list(input().split())

a = A.count(5)
b = A.count(7)

if a == 2 and b == 1:
  print('YES')
else:
  print('NO')
line = input()

if line == '5 5 7' or line == '7 5 5':
  print('YES')
  
else:
  print('NO')
l = list(map(int, input().split()))
count_5 = 0
count_7 = 0
for r in l:
  if r == 5:
    count_5 += 1
  if r == 7:
    count_7 += 1
if count_5 == 2 and count_7 == 1:
  print('Yes')
else:
  print('No')
a, b, c = list(map(int, input().split()))
s = tuple(sorted([a, b, c]))
ans = 'YES' if s == (7,7,5) else 'NO'
print(ans)
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")
a,b,c=map(int,input().split())
d=min(a,b,c)
e=max(a,b,c)
if d==5 and e==7 and a+b+c==17:
  print("Yes")
else:
  print("No")
s=input().split()
print(["NO","YES"]["5" in s and "7" in s and ("5 5" in s or "5 7" in s)])
A,B,C = map(int,input().split())
print('YES' if A+B+C == 17 else 'N0')
word = list(map(int,input().split()))
#print(word) ['5', '5', '7']
a=0
b=0
for i in range(3):
    if word[i]==int(5):
        a=a+1
for i in range(3):
    if word[i]==int(7):
        b=b+1
print(a,b)
if a==2 and b==1:
	print("YES")
else:
  	print("NO")
arr = list(map(int,input().split()))
if arr[0]==5 and arr[1]==7 and arr[2]==5:
  print('YES')
else:
  print('NO')
A, B, C = map(str, input().split())
ABC = A+B+C
print(ABC)
if ABC == '575':
    print('YES')
else:
    print('NO')
abc=list(map(int,input().split()))
abc.sort()
if abc ==[5, 5, 7]:
  print("Yes")
else:
  print("No")
li = input().split()
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")
a = sorted(list(map(int,input().split())))
print('Yes' if a==[5,5,7] else 'No')
a = input().split(" ")

if a == ["5", "5", "7"]:
    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 = input().split(" ")
a.sort()
if (a[0] == a[1] == 5) and a[2] == 7:
  print("Yes")
else:
  print("No")
syllable = input()
if syllable == "5 5 7" or "5 7 5" or "7 5 5":
  print("YES")
else:
  print("NO")
haiku=list(map(int, input().split())) #a1 a2 a3
haiku.sort()

print(haiku)
print('YES' if haiku[0]==5 and haiku[1]==5 and haiku[2]==7 else 'NO')
a, b, c = map(int,input().split())
d = [a, b, c]
if d.count(5) == 2 and d.count(7) == 1:
    print("Yes")
    
else:
    print("No")
# -*- coding: utf-8 -*-

if __name__ == "__main__":
    str_list = [map(int, input().split())]
    if str_list.count(5) == 2 and str_list.count(7) == 1:
        print('YES')
    else:
        print('NO')
a,b,c,=map(int,input().split())
list1={a,b,c}
list2={5,7}
if list1==list2:
    print("YES")
else:
    print("NO")
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
  else:
      pass

if seven == 1 and five == 2:
  print("TRUE")
else:
    print("NO")
l = input().split()
if(int(l[0])==5 and int(l[1])==5):
  print("YES")
else:
  print("NO")
l=[int(x) for x in input().split()]
if sum(l)==17:
	print("yes")
else:
	print('no')
a = [input for i in range(3)]
 
b = [5,5,7]
c = [5,7,5]
d = [7,5,5]

def func():
  if a == b:
    print(YES)
  if a == c:
    print(YES)
  if a == d:
    pritn(YES)
  return print(NO)
a = input('')
if a.count('5') == 2 and a.count('7') ==1:
	print('yes')
else:
	print('no')
num= input().split()
count5 = 0
count7 = 0
 
for i in range(len(num)):
    if num[i] == 5:
        count5 += 1
    elif num[i] == 7:
        count7 += 1
    else:
        continue
if count5 == 2 and count7 == 1:
    print('YES')
else:
    print('NO')
l = list(map(int, input().split()))

flag_5 = flag_7 = 0

for i in l:
    if i == 5:
        flag_5 += 1
    if i == 7:
        flag_7 += 1

if flag_5 == 2 and flag_7 == 1:
    print("Yes")
else:
    print("No")
a,b,c=map(int,input().split())
n=[a,b,c]
m=len([i for i in n if i==5])
if m==2:
  print('Yes')
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')
S=list(map(int,input().split()))

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

if A+B+C==17:
    print('Yes')
else:
    print('No')
A, B, C = [int(x) for x in input().split()]

if A == 5 and B == 7 and C == 5:
    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==5 or 7 and b==5 or 7 and c==5 or 7:
    if a+b+c==17:
        print('YES')
else:
    print('NO')
a, b, c = map(int, input().split())
if a+b+c == 17:
    print("Yes")
else:
    print("No")
s = input().split()
print('YES' if s.count('5')==2 and s.count('7')==1 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")
#!/usr/bin/env python3
# -*- coding: utf-8 -*-


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


if __name__ == "__main__":
    main()
a = input()
if "5" and "5" and "7" in a:
  print("YES")
else:
  print("NO")
A,B,C = input().split()

if A == B == "5"and C == "7":
    print("YES")
elif A == C == "5" and C == "7":
    print("YES")
elif B == C == "5" and C == "7":
    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")
N = list(map(int,input().split()))

if 7 in N:
    N.remove(7)
    if 5 in N:
        if sum(N) == 10:
            print("Yes")
            exit()
print("No")
import sys
from heapq import heappush, heappop, heapify
import math
from math import gcd
import itertools as it
from collections import deque 

input = sys.stdin.readline

def inp():
    return int(input())
def inpl():
    return list(map(int, input().split()))

INF = 1001001001

# ---------------------------------------

def main():
    A = inpl()
    A.sort()
    if A[0]==A[1]==5 and A[2]==7:
        print("Yes")
    else:
        print("No")

main()
A = list(map(int, input().split()))

count = 0
for i in range(3):
    if A[i] == 5 or A[i] == 7:
        count += 1
        
if count == 3:
    print('Yes')
else:
    print('No')
a, b, c = map(int, input().split())
if a*b*c == 175 and a+b+c == 17 :
    print("Yes")
else :
    print("No")
A = list(input().split())

count = 0
if A.count("7") == 1 and A.count("5") == 2:
    print("Yes")
else:
    print("No")
s = list(input().split())
a = s.count("5")
b = s.count("7")
if a == 2 and b == 1:
    print("Yes")
else:
    print("No")
A, B, C = map(int,input().split())
if A == 5 and B == C == 7:
    print("YES")
elif A==B==7 and C==5:
    print("YES")
elif A==C==7 and B==5:
    print("YES")
else:
    print("NO")
x=list(map(int,input().split()))
if x.count(5)==2 and x.count(7)==1:
  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 = sorted(input_ints())
yes(numbers == [5,5,7])
l = input().split()
if l == ["5","7","5"] or ["7","5","5"] or ["5","5","7"]:
  print('YES')
else:
  print('NO')
A = list(map(int,input().split()))
sorted(A)

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

s = a, b, c

if s == (5, 7, 5):
    print("Yes")
else:
    print("No")
a,b,c = map(int, input().split())
s = {a,b,c}
list1 = [a,b,c]
if s == {5,7} and sum(list1) == 17:
  print("Yes")
else :
  print("No")
def main(input: list):
    possible575 = sorted(input) == [5, 5, 7]
    print(possible575)


input = list(map(int, input().split()))
main(input)
def hiku():
	lst=input()
	lst = lst.split()
	lst.sort()
	print(lst)
	if lst[0]=='5' and lst[1]=='5' and lst[2]=='7':
		print("YES")
	else:
		print('NO')
hiku()
a, b, c = map(int, input().split())
print('Yes' if a+b+c == 17 else 'No')
A, B, C = map(int, input().split())
fsf = [A, B, C]
if fsf.count(5) == 2 & fsf.count(7) == 1:
  print("YES")
else:
  print("NO")