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:
from sys import stdin
lis = stdin.readline().rstrip().split()
a = int(lis[0])
b = int(lis[1])
c = int(lis[2])

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

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

Submission status: Accepted

Solution code:
#2019/09/25
iroha = input().split()
print("YES" if iroha.count("5") == 2 and iroha.count("7") == 1 else "NO")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
input_line = input().split()
#print(input_line)
count5 = 0
count7 = 0
#print(input_line[0])
#print(len(input_line))
for i in range(len(input_line)):
#  print(input_line[i])
  if int(input_line[i]) == 5:
#    print(input_line[i])
    count5 += 1
#    print(count5)
  elif int(input_line[i]) == 7:
    count7 += 1
#    print(count7)
if count5 == 2 and count7 == 1:
  print("YES")
#  print(count5,count7)
else:
#  print(count5,count7)
  print("NO")

Submission status: Accepted

Solution code:
# A B Cという入力をリスト化
haiku = list(map(int, input().split()))

#作ったリストをソート
haiku.sort()

if haiku == [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:
  print("YES")
else:
  print("NO")

Submission status: Accepted

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

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

x = [a, b, c]
x.sort()

if x == [5, 5, 7]:
    ans = "YES"
else:
    ans = "NO"

print(ans)

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 = [int(n) for n in input().split()]
a.sort()
if a == [5, 5, 7]:
  print('YES')
else:
  print('NO')

Submission status: Accepted

Solution code:
import sys

if sys.platform =='ios':
    sys.stdin=open('input_file.txt')
    
S=map(int,input().split())

s=sorted(S)

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

Submission status: Accepted

Solution code:
l = str(raw_input().split())

if l.count('5') == 2 and l.count('7') == 1:
  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:
#coding:utf-8
num = list(map(str, 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 = sorted(A)
if A == [5,5,7]:
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
a, b, c =list(map(int, input().split()))
# print (a, b, c)
n = [a, b, c]

c5 = 0
c7 = 0
for i in n:
    if i == 5:
        c5 += 1
    if i == 7:
        c7 += 1

if c5 == 2 and c7 == 1:
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
INT = lambda: int(input())
INTM = lambda: map(int,input().split())
STR = lambda: str(input())
LIST = lambda: list(map(int,input().split()))
def do():
    a = LIST()
    a5 = 0
    a7 = 0
    for A in a:
        if A == 5:
            a5 +=1
        elif A == 7:
            a7 +=1
    if a5 ==2 and a7 ==1:
        print('YES')
    else:
        print('NO')
if __name__ == '__main__':
    do()

Submission status: Accepted

Solution code:
A = list(map(int, input().split()))
five_cnt = 0
seven_cnt = 0

for a in A:
    if a == 5:
        five_cnt += 1
    if a == 7:
        seven_cnt += 1

if five_cnt == 2 and seven_cnt == 1:
    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())
if list(sorted([A, B, C])) == [5, 5, 7]:
    print('YES')
else:
    print('NO')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x,y,z=map(int,input().split())
A=x*y*z
if A==175:
    print('YES')
else:
    print('NO')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

input_list = input().split()
sort_list = (int(input_list[0]),int(input_list[1]),int(input_list[2]))

tuple_a = (5,5,7)
tuple_b = (5,7,5)
tuple_c = (7,5,5)

if sort_list==tuple_a or sort_list==tuple_b or sort_list==tuple_c:
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
A = list(map(int, input().split()))
a = sorted(A)
#print(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()))
five_cnt = 0
seven_cnt = 0

for a in A:
    if a == 5:
        five_cnt += 1
    elif a == 7:
        seven_cnt += 1

if five_cnt == 2 and seven_cnt == 1:
    print('YES')
else:
    print('NO')

Submission status: Accepted

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

seven=0
five=0
for i in String:
	if i==7:
		seven+=1

	elif i==5:
		five+=1

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

else:
	print("NO")

Submission status: Accepted

Solution code:
# -*- cording: utf-8 -*-
nums = input().split()
if nums.count("5") == 2 and nums.count("7") == 1:
  print("YES")
else:
  print("NO")

Submission status: Accepted

Solution code:
input_text = input()
input_ = input_text.split()

cou5 = 0
cou7 = 0

for i in ([int(j) for j in input_]):
    if int(i) == 5:
        cou5 += 1
    elif int(i) == 7:
        cou7 += 1

if cou5 == 2 and cou7 == 1:
    result = "YES"
else :
    result = "NO"

print(result)

Submission status: Accepted

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


if __name__ == "__main__":
    resolve()

Submission status: Accepted

Solution code:
ABC = sorted(list(map(int, input().split())))
ABC2 = [5,5,7]
if ABC == ABC2:
    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:
s = sorted([int(i) for i in input().split()])
haiku = [5, 5, 7]
if s == haiku:
    print('YES')
else:
    print('NO')

Submission status: Accepted

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

if sum(ABC) == 17:
    print('YES')
else:
    print('NO')

Submission status: Accepted

Solution code:
n=list(map(int,input().split()))
if sum(n)==17:
    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:
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:
# coding:utf-8
 
x, y, z = list(map(int, input().split()))
if x == 5 and y == 7 and z == 5:
  print("YES")
elif x == 7 and y == 5 and z == 5:
  print("YES")
elif x == 5 and y == 5 and z == 7:
  print("YES")
else:
  print("NO")

Submission status: Accepted

Solution code:
N = input()
C5 = 2
C7 = 1
for i in N.split():
  if i == '5':
    C5 -= 1
  elif i == '7':
    C7 -= 1
  else:
    print( 'NO' )
    break
else:
  if C5 == 0 and C7 == 0:
    print( 'YES' )
  else:
    print( '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:
n = input().split()
print('YES' if n.count('5') == 2 and n.count('7') == 1 else '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:
import sys
input = sys.stdin.readline

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

    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 = 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 == 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
lst = list(map(int,input().split()))
ans = 'NO'
if (lst.count(5) == 2 and lst.count(7) == 1):
    ans = 'YES'
print(ans)

Submission status: Accepted

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

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, B, C = input().split()
print("YES" if "575" in {A+B+C, A+C+B, B+A+C, B+C+A, C+A+B, C+B+A} else "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:
#ABC042A
ls = list(map(int, input().split()))

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S=input()
print(("NO","YES")[S.count("7")==1 and S.count("5")==2])

Submission status: Accepted

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

if inputs.count("5") == 2 and inputs.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:
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,B,C = input().split()
A = int(A)
B = int(B)
C = int(C)
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 == 7:
    if B == C and B == 5:
        print('YES')
    else:
        print('NO')

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

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

else:
    print('NO')

Submission status: Accepted

Solution code:
s = sorted([int(x) for x in input().split()])
print("YES" if s==[5,5,7] else "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:
def f(data):
  for i in range(3):
    if 0 > int(data[i]) or int(data[i]) > 10:
      print ("NO")

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

data = input().split()
if len(data) == 3:
  f(data)
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:
a,b,c = map(int,input().split())
print("YES" if a*b*c == 5*5*7 else "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:
a,b,c = (int(x) for x in 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:
print("YNEOS"[["5","5","7"]!=sorted(input().split())::2])

Submission status: Accepted

Solution code:
print(["YES","NO"][input().split().count("5")==1])

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#coding: utf-8
 
num = list(map(int, input().split()))
if (num.count(5)) == 2:
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
n=input().split();print('YNEOS'[n.count('5')!=2 or n.count('7')!=1::2])

Submission status: Accepted

Solution code:
a,b,c=sorted(input().split());print('YNEOS'[a!='5'or b!='5'or c!='7'::2])

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:
abcSet = list(map(int,input().split()))

abcSet.sort()

test = [5,5,7]

if abcSet == test:
    print('YES')
else:
    print('NO')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
mylist = list(input().split())

list_575 = ["5", "7", "5"]

for l in mylist:
    if l in list_575:
        list_575.remove(l)
    else:
        print("NO")

if len(list_575) == 0:
    print("YES")

Submission status: Accepted

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

r5=0
r7=0
for num in A:
    if num == 5:
        r5+=1
    elif num==7:
        r7+=1

if r5==2 and r7==1:
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import collections

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

s_num = collections.Counter(s)
if s_num[5] == 2 and s_num[7] == 1:
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
a, b, c = map(str, input().split())
s = a+b+c

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

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:
a = sorted([int(_) for _ in input().split()])
if len(a) == 3 and all(1 <= i <= 10 for i in a):
    print('YES' if a[0] == a[1] == 5 and a[2] == 7 else 'NO')
else:
    print('hoge!')

Submission status: Accepted

Solution code:
print('NYOE S'['557'==''.join(sorted(input()[::2]))::2])

Submission status: Accepted

Solution code:
print('NYOE S'[['5','5','7']==sorted(input()[::2])::2])

Submission status: Accepted

Solution code:
print(['NO','YES'][['5','5','7']==sorted(input()[::2])])

Submission status: Accepted

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

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:
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:
import sys
a,b,c=map(int,input().split())
if a == 5:
    if b == 5:
        if c == 7:
            print('YES')
            sys.exit()
    elif b==7:
        if c == 5:
            print('YES')
            sys.exit()
if a == 7:
    if b==c==5:
        print('YES')
        sys.exit()
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(" "))
if A == 7 or B == 7 or C == 7:
    if A == 5 or B ==5 or C ==5:
        if A+B+C==17:
            print("YES")

        else:
            print("NO")
    else:
        print("NO")
else:
    print("NO")

Submission status: Accepted

Solution code:
s=input()
fcount,scount=0,0
list=s.split(' ')
for i in list:
    if i=='5':
        fcount+=1
    elif i=='7':
        scount+=1
if fcount==2 and scount==1:
    print('YES')
else:
    print('NO')

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
"""
Created on Sat Sep  7 12:03:54 2019

@author: ask07
"""

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

stdin = sys.stdin
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline()

li = na()
li.sort()
print('YES' if li[0] == 5 and li[1] == 5 and li[2] == 7 else '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:
import numpy as np
x=input()
x=x.split(' ')
y=np.sort([int(i) for i in x])
if all(y == np.array([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:
import itertools

A, B, C = map(int, input().split())
l = [A, B, C]
p = itertools.permutations(l)
flag = False
for i in p:
    if i == (5, 7, 5):
        flag = True
if flag:
    print('YES')
else:
    print('NO')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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 = [int(str) for str in input().split(" ")]
counter5 = 0
counter7 = 0

for num in [a, b, c]:
  if num == 5:
    counter5 += 1
  elif num == 7:
    counter7 += 1

if (counter5 == 2) and (counter7 == 1):
  print("YES")
else:
  print("NO")

Submission status: Accepted

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

a = int(s[0])
b = int(s[1])
c = int(s[2])

count_5 = 0
if a == 5:
  count_5 += 1
if b == 5:
  count_5 += 1
if c == 5:
  count_5 += 1
  
count_7 = 0
if a == 7:
  count_7 += 1
if b == 7:
  count_7 += 1
if c == 7:
  count_7 += 1
  
if count_5 == 2 and 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:
  print("YES")
else:
  print("NO")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
List=input()
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())
flag1 = False
flag2 = False
flag3 = False
if a == 5 or b == 5 or c == 5:
    flag1 = True
if a == 7 or b == 7 or c == 7:
    flag2 = True
if a + b + c == 17:
    flag3 = True

if flag1 and flag2 and flag3:
    print('YES')
else:
    print('NO')

Submission status: Accepted

Solution code:
def main():
  core = {5: 2, 7:1}
  data = {}
  for x in [int(x) for x in raw_input().split(' ')]:
    if x not in data:
      data[x] = 0
    data[x] += 1
  for key, val in data.items():
    if not (core.get(key, 0) > 0 and core[key] == val):
      print("NO")
      return
  print("YES")
      

main()

Submission status: Accepted

Solution code:
a, b, c = [int(i) for i in input().split()]
if a*b*c == 175:
  print('YES')
else:
  print('NO')

Submission status: Accepted

Solution code:
def slove():
    import sys, collections
    input = sys.stdin.readline
    a = dict(collections.Counter(list(map(int, input().rstrip('\n').split()))).most_common())
    print("YES" if a[5] == 2 and a[7] == 1 else "NO")


if __name__ == '__main__':
    slove()

Submission status: Accepted

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

# input
ans = list(map(int, input().split()))

# solve
ans.sort()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():

    A, B, C = map(int, input().split())
    d = dict()
    for i in [A, B, C]:
        d[i] = d.get(i, 0) + 1
    if d[5] == 2 and d[7] == 1:
        return "YES"
    return "NO" 

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

Submission status: Accepted

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

Submission status: Accepted

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

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())
list_num = [A,B,C]
list_num.sort()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

f_count = 2
s_count = 1
haikuflag = False
input_stuck = input().split()
num = [int(input_stuck[0]),int(input_stuck[1]),int(input_stuck[2])]
for i in num:
    if i == 5:
        f_count-=1
    elif i == 7:
        s_count-=1
if f_count == 0 and s_count == 0:
    print('YES')
else:
    print('NO')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import sys
import copy
import collections
from bisect import bisect_left
from bisect import bisect_right
from collections import defaultdict
from heapq import heappop, heappush, heapify
import math
import itertools
import random
 
# NO, PAY-PAY
#import numpy as np
#import statistics
#from statistics import mean, median,variance,stdev
 
INF = float('inf')
def inputInt(): return int(input())
def inputMap(): return map(int, input().split())
def inputList(): return list(map(int, input().split()))
 
def main():
    A,B,C = inputMap()
    
    tot = A+B+C
    tmp = tot - 7
    if max(A,B,C) == 7 and min(A,B,C) == 5 and tmp == 10:
        print("YES")
    else:
        print("NO")
    
if __name__ == "__main__":
	main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

print('YES' if ABC[0] * ABC[1] * ABC[2] == 175 else 'NO')

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
seven_count = 0
five_count = 0
s = input().split()
for number in s:
    if number == "5":
  	    five_count += 1
    elif number == "7":
        seven_count += 1
if seven_count == 1 and five_count == 2:
  	print("YES")
else:
  	print("NO")

Submission status: Accepted

Solution code:
num_list = input().split()
five_count = num_list.count("5")
seven_count = num_list.count("7")

if five_count == 2 and seven_count ==1:
  print("YES")
else:
  print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
str = input()
int_list = str.split(' ')
int_list = [int(x) for x in int_list]
five_count = int_list.count(5)
seven_count = int_list.count(7)
if five_count==2 and seven_count==1:
    print('YES')
else:
    print('NO')

Submission status: Accepted

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