Problem:


Score : 100 points

Problem Statement

Iroha loves Haiku. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order.

To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.

Constraints

1≦A,B,C≦10

Input

The input is given from Standard Input in the following format:

A B C

Output

If it is possible to construct a Haiku by using each of the phrases once, print YES (case-sensitive). Otherwise, print NO.

Sample Input 1

5 5 7

Sample Output 1

YES

Using three phrases of length 5, 5 and 7, it is possible to construct a Haiku.

Sample Input 2

7 7 5

Sample Output 2

NO



Sample input:
5 5 7


Sample output:
YES

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = [int(i) for i in input().split()]
count5 = 0
count7 = 0
for i in a:
    if i==5:
        count5 += 1
    if i==7:
        count7 += 1
if count5==2 and count7==1:
    print('YES')
else:
    print('NO')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def read_int():
    return int(input().strip())


def read_ints():
    return list(map(int, input().strip().split(' ')))


def solve():
    A, B, C = read_ints()
    if sorted([A, B, C]) == [5, 5, 7]:
        return 'YES'
    return 'NO'


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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
words = list(input().split())
flag = False

if('5' in words):
 words.remove('5')
 if('7' in words):
  words.remove('7')
  if('5' in words):
   words.remove('5')
   flag =True 

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!

line = input().split()
count = 0
for i in line:
    
    if i == "5":
        
        count += 1
        
    elif i == "7":
        count += 2
    else:
        print("NO")
        
if count == 4:
    print("YES")
    
else:
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
a, b, c = map(int,input().split())
at = 0
bt = 0
ct = 0

if a == 5 :
    at += 1
elif a == 7 :
    at += 10

if b == 5 :
    bt += 1
elif b == 7 :
    bt += 10

if c == 5 :
    ct += 1
elif c == 7 :
    ct += 10


if  at + bt + ct == 12 :
    print("YES")

else :
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
lima = 0
tujuh = 0
a = [int(tmp) for  tmp in input().split()]
for i in range(3) :
  if a[i] == 5 :
    lima += 1
  elif a[i] == 7 :
    tujuh += 1
if lima==2 and tujuh == 1 :
  print("YES")
else :
  print('NO')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

input = sys.stdin.readline


def main():
    A, B, C = map(int, input().split())

    l = [A, B, C]
    l.sort()
    if l[0] == l[1] == 5 and l[2] == 7:
        print("YES")
    else:
        print("NO")


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
n=[a,b,c]
m=len([i for i in n if i==5])
p=len([i for i in n if i==7])
if m==2 and p==1:
  print('YES')
else:
  print('NO')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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,5]:
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = list((int(x) for x in input().split()))
if sum(a) == 17:
  print('YES')
else:
  print('NO')

Submission status: Accepted

Solution code:
a,b,c=map(int,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")

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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


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

Submission status: Accepted

Solution code:
s = list(map(int, input().split()))
if s[0] + s[1] + s[2] == 17 and s[0] * s[1] * s[2] == 175:
  print("YES")
else:
  print("NO")

Submission status: Accepted

Solution code:
li = list(map(int, input().split()))
count5 = 0
count7 = 0
for i in li:
    if i == 5:
        count5 += 1
    elif i == 7:
        count7 += 1
if count5 == 2 and count7 == 1:
    print('YES')
else:
    print('NO')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
Min = min(a, b, c)
Max = max(a, b, c)
other = a + b + c - Min - Max
if Min == 5 and Max == 7 and other == 5:
    print('YES')
else:
    print('NO')

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
print("YES"if input()in("5 5 7","5 7 5","7 5 5")else"NO")

Submission status: Accepted

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

Submission status: Accepted

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


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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
if a == 7:
	if b == 5 and c == 5:
		print("YES")
	else:
		print("NO")
elif 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")

Submission status: Accepted

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

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

Submission status: Accepted

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

else:
    print('NO')

Submission status: Accepted

Solution code:
def main():
    import sys
    input = sys.stdin.readline
    sys.setrecursionlimit(10**7)
    from collections import Counter, deque
    #from collections import defaultdict
    from itertools import combinations, permutations, accumulate, groupby, product
    from bisect import bisect_left,bisect_right
    from heapq import heapify, heappop, heappush
    from math import floor, ceil
    #from operator import itemgetter

    #inf = 10**17
    #mod = 10**9 + 7

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

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A = input()

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

Submission status: Accepted

Solution code:
Alist = [int(x) for x in input().split()]
newlist = sorted(Alist)

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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()
string=""
string+=str(a)
string+=str(b)
string+=str(c)
if string=='557' or string=="575" or string=="755":
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
text = input()

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

if 5 in x:
  x.remove(5)
if 5 in x:
  x.remove(5)
if 7 in x:
  x.remove(7)

if x==[]:
  print("YES")
else:
  print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

count_5 = 0
count_7 = 0

if a == 5:
    count_5 += 1
elif a == 7:
    count_7 += 1

if b == 5:
    count_5 += 1
elif b == 7:
    count_7 += 1

if c == 5:
    count_5 += 1
elif c == 7:
    count_7 += 1

if count_5 == 2 and count_7 == 1:
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a=input().split()
five=a.count("5")
seven=a.count("7")

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

Submission status: Accepted

Solution code:
a = [int(x) for x in input().split()]

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

input_methods=['clipboard','file','key']
using_method=0
input_method=input_methods[using_method]

IN=lambda : map(int, input().split())
mod=1000000007

#+++++

def main():
	#a = int(input())
	al = list(IN())
	#s = input()
	al.sort()
	return 'YES' if al == [5,5,7] else 'NO'
	
	
	
#+++++
isTest=False

def pa(v):
	if isTest:
		print(v)
		
def input_clipboard():
	import clipboard
	input_text=clipboard.get()
	input_l=input_text.splitlines()
	for l in input_l:
		yield l

if __name__ == "__main__":
	if sys.platform =='ios':
		if input_method==input_methods[0]:
			ic=input_clipboard()
			input = lambda : ic.__next__()
		elif input_method==input_methods[1]:
			sys.stdin=open('inputFile.txt')
		else:
			pass
		isTest=True
	else:
		pass
		#input = sys.stdin.readline
			
	ret = main()
	if ret is not None:
		print(ret)

Submission status: Accepted

Solution code:
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,B,C = list(map(int, input().split()))
irohachan(A,B,C)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
l = list(map(int,input().split()))
go = 0
shichi = 0
for i in range(3):
  if l[i] == 5:
    go += 1
for i in range(3):
  if l[i] == 7:
    shichi += 1
if go == 2 and shichi ==1:
  print('YES')
else:
  print('NO')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
lst=list(map(int,input().split()))
if 7 in lst:
  lst.remove(5)
else:
    ans='NO'
if 5 in lst:
  lst.remove(7)
else:
    ans='NO'
if 5 in lst:
  ans='YES'
print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
A,B,C = list(map(int, input().split()))
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")

Submission status: Accepted

Solution code:

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

Submission status: Accepted

Solution code:
import collections, math, bisect, re

local = False
if local:
    file = open("input.txt", "r")
    import time

def inp():
    if local:
        return file.readline().rstrip()
    else:
        return input().rstrip()

def ints():
    return [int(_) for _ in inp().split()]


if local:
    start=time.time()


phrases = ints()

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



if local:
    fin = (time.time()-start)*1000
    print("{:.2f}".format(fin) + "ms")

Submission status: Accepted

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

ans5 = 0
ans7 = 0
for i in range(3):
  if (a[i] == 5):
    ans5 += 1
  elif (a[i] == 7):
    ans7 += 1

if (ans5 == 2 and ans7 == 1):
  print("YES")
else:
  print("NO")

Submission status: Accepted

Solution code:
def ispossible(list1):
  if list1.count("5") == 2 and list1.count("7") == 1:
    return "YES"
  else:
    return "NO"

list1 = input().split()
print(ispossible(list1))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = list(map(int, input().split()))
a = 0
b = 0
for i in s: 
    if i == 5:
        a += 1
    elif i == 7:
        b += 1

if a == 2 and b == 1:
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
a, b, c = map(str, input().split())
N = a + b + c
if N == "557" or N == "575" or N == "755":
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

def haiku(a,b,c):
	suming = a+b+c
	if suming == 17:
		print("YES")
	else:
		print("NO")
	 
	
haiku(a,b,c)

Submission status: Accepted

Solution code:

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


if __name__ == "__main__":
    resolve()

Submission status: Accepted

Solution code:
def resolve():
	x, y, z = map(int, input().split())
	if x + y + z == 17:
		print("YES")
	else:
		print("NO")

resolve()

Submission status: Accepted

Solution code:
icase=42

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

Submission status: Accepted

Solution code:
A,B,C = 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")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def prod(ls):
    def resolve(ls, a):
        if len(ls) == 1:
            return a*ls[0]
        else:
            car = ls[0]
            ls = ls[1:]
            return resolve(ls, a*car)
    return resolve(ls, 1)

ls = list(map(int, input().split()))
if sum(ls) == 17 and prod(ls) == 175:
    print("YES")
else :
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    l = [int(a) for a in input().split()]

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

Submission status: Accepted

Solution code:
import sys
import os
import math

ii = lambda: int(sys.stdin.buffer.readline().rstrip())
il = lambda: list(map(int, sys.stdin.buffer.readline().split()))
fl = lambda: list(map(float, sys.stdin.buffer.readline().split()))
iln = lambda n: [int(sys.stdin.buffer.readline().rstrip()) for _ in range(n)]

iss = lambda: sys.stdin.buffer.readline().decode().rstrip()
sl = lambda: list(map(str, sys.stdin.buffer.readline().decode().split()))
isn = lambda n: [sys.stdin.buffer.readline().decode().rstrip() for _ in range(n)]

MOD = 10 ** 9 + 7


def main():
    if os.getenv("LOCAL"):
        sys.stdin = open("input.txt", "r")

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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

import collections


def solve():
    pass


arr = list(map(int, input().strip().split()))
arr.sort()

print("YES" if "".join(map(str, arr)) == "557" else "NO")

Submission status: Accepted

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

count1 = 0
count2 = 0

for s in S: 
  if s == "5":
    count1 += 1
  elif s == "7":
    count2 += 1
  
if count1 == 2 and count2 == 1:
  print("YES")
else:
  print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

a.sort()

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

Submission status: Accepted

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

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

elif a == 5 and b == 7 and c == 5:
  print('YES')

elif a == 7 and b == 5 and c == 5:
  print('YES')

else:
  print('NO')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
if a+b+c == 17:
  if set([a, b, c]) == {5, 7}:
    print("YES")
  else:
    print("NO")
else:
  print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

if 7 in i:
  i.remove(7)
  if i[0] == 5 and i[1] == 5:
    print('YES')
  else:
    print('NO')
else:
  print('NO')

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
A, B, C = map(int, input().split())
if ((A*B*C)%175==0):
    print('YES')
else:
    print('NO')

Submission status: Accepted

Solution code:
# coding: utf-8
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')