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:
x,y,z=input().split()
if (float(x)*float(y)*float(z)==175):
    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:
# -*- coding: utf-8 -*-
A = list(map(int,input().split()))
A.sort()
if A == [5,5,7]:
  print("YES")
else:
  print("NO")

Submission status: Accepted

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

if i[0] == 5:
    count5 += 1
elif i[0] == 7:
    count7 += 1

if i[1] == 5:
    count5 += 1
elif i[1] == 7:
    count7 += 1

if i[2] == 5:
    count5 += 1
elif i[2] == 7:
    count7 += 1

if count5 == 2 or count7 == 1:
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
a=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())
print('YES' if A+B+C == 17 and (A+B == 10 or A+C == 10 or B+C == 10) else 'NO')

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:
word = input().split()

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

Submission status: Accepted

Solution code:
int = list(map(int, input().split()))
int = sorted(int)
for i in range(1):
    if int[0] == 5:
        if int[1] == 5:
            if int[2] == 7:
                print("YES")
                break
else:
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = list(map(int,input().split()))	
b = [i for i in a if i==5 or i==7]

c=sum(b)


if c==17: 
    print ("YES")
else: 
    print("NO")

Submission status: Accepted

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

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:
ls = list(map(int,input().split()))
ls.sort()
 
if ls[0]==5 and ls[1]==5 and ls[2]==7:
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
go = list(map(int,input().split()))
if go.count(5) == 2 and go.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:
arr = input().split()
print('YES') if 0 <= arr.count('5') - arr.count('7') <= 1 else print('NO')

Submission status: Accepted

Solution code:
###template###
import sys
def input(): return sys.stdin.readline().rstrip()
def mi(): return map(int, input().split())
###template###

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

Submission status: Accepted

Solution code:
seven = 0
five = 0

A,B,C = map(int,input().split())
if A == 7:
    seven += 1
elif A == 5:
    five += 1
if B == 7:
    seven += 1
elif B == 5:
    five += 1
if C == 7:
    seven += 1
elif C == 5:
    five += 1
    
if seven == 1 or five == 2:
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

abc.sort()
if abc == [5, 5, 7]:
  print("YES")
else:
  print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

num5 = num7 = 0
for s in S:
  if s == 5:
    num5 += 1
  if s == 7:
    num7 += 1

if num5 == 2 and num7 == 1:
  print("YES")
else:
  print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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 = 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:
l=list(map(int,input().split()))
if l==[7,5,5] or l==[5,7,5] or l==[5,5,7]:
    print('YES')
else:
    print('NO')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

def judge(numbers):
  if sum(numbers) == 17:
    numbers.sort()
    if numbers[0] == 5 and numbers[0] == numbers[1]:
      return 'YES'

  return 'NO'

  
if __name__ == '__main__':
  numbers_str = input()
  print(judge([int(n) for n in numbers_str.split(' ')]))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = [str(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:
numbers = input().split()
if numbers.count("7") == 1 and numbers.count("5") == 2:
  print("YES")
else:
  print("NO")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x,y,z = input().split()

if(int(x)*int(y)*int(z) == 175):
  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:
length = list(map(int, input().split()))
length.sort()

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

Submission status: Accepted

Solution code:
a,b,c = 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())
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())
if a + b+ c == 17:
	print("YES")
else:
	print("NO")

Submission status: Accepted

Solution code:
a,b,c = map(int, input().split())
t = [a,b,c]
t = sorted(t)
if t[0] == 5 and t[1] == 5 and t[2] == 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:
s = input().split()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
D=list(map(int,input().split()))
F=0
S=0
for d in D:
    if d==5:
        F+=1
    if d==7:
        S+=1
if F==2 and S==1:
    print('YES')
else:
    print('NO')

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
#入力
alist=input().split(" ")
alist=[int(a) for a in alist]
alist.sort()
if alist[0]==alist[1]==5 and alist[2]==7:
  print("YES")
else:
  print("NO")

Submission status: Accepted

Solution code:
List = [i for i in input().split()]
List.sort()
if List[0] == '5' and List[1] == '5' and List[2] == '7':
    print('YES')
else:
    print('NO')

Submission status: Accepted

Solution code:
l = [5, 5, 7]

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

for hh in h:
    try:
        l.remove(hh)
    except:
        pass

if len(l) == 0:
    print('YES')
else:
    print('NO')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
nums=input()
count5=nums.count("5")
count7=nums.count("7")

if count5==2 and count7==1:
    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:
a,b,c = map(int, input().split())
l = [a,b,c]



count = 0
for i in l:
	if i == 5:
		count += 1
		
		if count == 2:
			break

if any([i == 7 for i in l]) and count == 2:
	print("YES")
else:
	print("NO")

Submission status: Accepted

Solution code:
s = [int(n) for n in input().split()]

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
 
# 整数の入力
list_num = [int(num) for num in input().split()]

# 計算と出力
if (list_num.count(5) == 2)  and  (list_num.count(7) == 1) :
    print("YES")
else :
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
if ((a+b==10 and a==5) and c==7) or ((a+b==12 and c==5) and (a==5 or b==5)):
  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:
def is_575(bunsetsu_list):
    return bunsetsu_list.count(5) == 2 and bunsetsu_list.count(7) == 1
 
 
def main():
  bunsetsu_list = [int(i) for i in input().split()]
  print('YES' if is_575(bunsetsu_list) else 'NO')
  
  
main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
List = list(map(int, input().split()))
print("YES" if List.count(5)==2 and List.count(7)==1 else "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())
List = sorted([a,b,c])
if List == [5,5,7]:
  print("YES")
else:
  print("NO")

Submission status: Accepted

Solution code:
s = list(input().split())
if s.count('5')==2 and s.count('7')==1:
  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, B, C = map(int, input().split())
if A == B == 5 and C == 7 or \
   B == C == 5 and A == 7 or \
   C == A == 5 and B == 7:
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: UTF-8 -*-
a = list(map(int, input().split()))
count5 = 0
count7 = 0
for i in a:
    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:
N = list(map(int, input().split()))
c = 0
c2 = 0
for n in N:
    if n == 5:
        c += 1
    elif n == 7:
        c2 += 1
if c == 2 and c2 == 1:
    print('YES')
else:
    print('NO')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
print("YNEOS"["".join(sorted(input()))!="  557"::2])

Submission status: Accepted

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

Submission status: Accepted

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

iroha=(A,B,C)

if iroha==(5,7,5) or iroha==(5,5,7) or iroha==(7,5,5):
    print('YES')

else:
    print('NO')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
	A, B, C = map(int, input().split())
	haiku = False
	if A == 5:
		if (B==5 and C==7) or (B==7 and C==5):
			haiku = True
	else:
		if (B==5 and C==5):
			haiku = True
	if haiku:
		print("YES")
	else:
		print("NO")


if __name__ == '__main__':
	main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
if (a, b, c) in [(5, 5, 7), (5, 7, 5), (7, 5, 5)]:
    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:
def task_a():
    """
    https://atcoder.jp/contests/abc042/tasks/abc042_a
    """
    a, b, c = map(int, input().split())
    if (a, b, c) in [(5, 5, 7), (5, 7, 5), (7, 5, 5)]:
        print('YES')
    else:
        print('NO')

task_a()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
abc = [int(s) for s in input().split()]
count5 = abc.count(5)
count7 = abc.count(7)

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

Submission status: Accepted

Solution code:
a, b, c = 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())
if A==5 and B==5 and C==7: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')

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())
print('YES' if A*B*C == 175 else '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:
a = list(map(int,input().split()))
if sum(a)==17 and a.count(5)==2:
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

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:

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

NUM.sort(key=int,reverse=False)

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

Submission status: Accepted

Solution code:
A, B, C = map(int, input().split())
if A == 7 and B == C == 5 or B == 7 and C == A == 5 or C == 7 and A == B == 5:
    ans = 'YES'
else:
    ans = 'NO'

print(ans)

Submission status: Accepted

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

if a.count("5")==2 and a.count("7")==1:
  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, b, c = map(int, input().split())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from collections import Counter, deque
from fractions import gcd
from functools import lru_cache
from functools import reduce
import functools
import heapq
import itertools
import math
import numpy as np
import sys

sys.setrecursionlimit(10000)
INF = float('inf')


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

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

Submission status: Accepted

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

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
L = [int(i) for i in input().split()]

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

    num_5 = 0
    num_7 = 0

    if a == 5:
        num_5 += 1
    if b == 5:
        num_5 += 1
    if c == 5:
        num_5 += 1

    if a == 7:
        num_7 += 1
    if b == 7:
        num_7 += 1
    if c == 7:
        num_7 += 1

    if num_5 == 2 and num_7 == 1:
        print('YES')
    else:
        print('NO')

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
lis = ['5 7 5', '7 5 5', '5 5 7']
s = input()

if s in lis:
  print('YES')
else:
  print('NO')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = list(map(int,input().split()))
if sum(a)%17==0 and a.count(5)==2:
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

sums=0
for i in num:
	sums+=i
  
if sums ==17:
	print("YES")
else:
	print("NO")

Submission status: Accepted

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

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

Submission status: Accepted

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

if  A >= 1 and A <= 10 and B >= 1 and B <= 10 and C >= 1 and C <= 10 :
  if A == 5 :
    if B == 7 and C == 5 or B == 5 and C == 7 :
      print("YES")
    else :
      print("NO")
  elif A == 7 :
    if B == 5 and C == 5 :
      print("YES")
    else :
      print("NO")
  else :
    print("NO")
else :
  print("NO")

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

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

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

Submission status: Accepted

Solution code:
import sys

def main():
    input = sys.stdin.readline
    A = list(map(int, input().split()))
    A = sorted(A)

    if A[0] == A[1] == 5 and A[2] == 7:
        return 'YES'
    else:
        return 'NO'


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

Submission status: Accepted

Solution code:
a,b,c=(int(x) for x in input().split())
d=0 
e=0
if a==5:
  d=d+1
if a==7:
  e=e+1
if b==5:
  d=d+1
if b==7:
  e=e+1
if c==5:
  d=d+1
if c==7:
  e=e+1
if d==2 and e==1:
  print("YES")
else:
  print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b,c=(int(x) for x in input().split())

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

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

sen = [A, B, C]
sen.sort()
if sen == [5, 5, 7]:
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

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

sen = [A, B, C]
x = max(sen)
y = min(sen)
if x == 7 and y == 5 and sum(sen) - x - y == 5:
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# ABC042A - 和風いろはちゃんイージー / Iroha and Haiku (ABC Edition)
data = sorted(list(map(int, input().rstrip().split())))
print("YES" if data == [5, 5, 7] 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:
s = input().split()
s.sort()

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

Submission status: Accepted

Solution code:
a=[int(i) for i in input().split()]
a.sort()
print("YES" if a[0]==a[1]==5 and a[2]==7 else "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:
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+b+c==17) and (a==5 or a==7) and (b==5 or b==7) and (c==5 or c==7):
    print('YES')
else:
    print('NO')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
num = list(map(int,input().split()))
cnt_five = 0
cnt_seven = 0
def serch_five(a):
	if a == 5:
		return 1
	else:
		return 0
def serch_seven(a):
	if a == 7:
		return 1
	else:
		return 0

for i in num:
	cnt_five += serch_five(i)
	cnt_seven += serch_seven(i)
if cnt_five == 2 and cnt_seven == 1:
	print("YES")
else:
	print("NO")

Submission status: Accepted

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

seven = 0
five = 0

for i in range(3):
    if int(s[i]) == 5:
        five += 1
    if int(s[i]) == 7:
        seven += 1

if(five == 2 and seven == 1):
    print("Yes".upper())
else:
    print("No".upper())

Submission status: Accepted

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

five = 0
seven = 0
if A==5:
  five += 1
elif A==7:
  seven += 1
if B==5:
  five += 1
elif B==7:
  seven += 1
if C==5:
  five += 1
elif C==7:
  seven += 1
if five == 2 and seven == 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:
    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, raw_input().split())
if a + b + c == 17:
  print "YES"
else:
  print "NO"

Submission status: Accepted

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

Submission status: Accepted

Solution code:
sList = list(map(int, input().split()))
cnt5 = 0
cnt7 = 0
ansFlg = True
for i in sList:
    if i == 5:
        if cnt5 == 3:
            ansFlg = False
            break
        cnt5 += 1
        continue
    elif i == 7:
        cnt7 += 1
        if cnt7 == 2:
            ansFlg = False
            break
        continue
    else:
        ansFlg = False
        break
if ansFlg:
    print('YES')
else:
    print('NO')

Submission status: Accepted

Solution code:
from collections import Counter

input_line = map(int, input().split())

count_dict = Counter(input_line)

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = input()

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