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:
a,b,c=map(int,input().split())
arr=[0]*100
arr[a]+=1
arr[b]+=1
arr[c]+=1

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

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline

def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))

def main():
    mod=10**9+7
    a,b,c=MI()
    L=[a,b,c]
    L.sort()
    if L==[5,5,7]:
        print("YES")
    else:
        print("NO")
    

main()

Submission status: Accepted

Solution code:
line = input()
if line.count("5")==2 and line.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:
stack = [i for i in input().split(" ")]
cnt1 = 0
cnt2 = 0

for i in stack:
    if "5" == i:
        cnt1 = cnt1 + 1
    if "7" == i:
        cnt2 = cnt2 + 1

if cnt1 == 2 and cnt2 == 1:
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
l = list(input().split())
five = 0
seven = 0
for i in l:
  if i == '5':
    five += 1
  elif i == '7':
    seven += 1
  else:
    pass

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from sys import stdin

l = stdin.readline().rstrip().split()
l.sort()

a, b, c = [int(x) for x in l]

if a == b == 5:
    if c == 7:
        print('YES', flush=True)
    else:
        print('NO', flush=True)
else:
    print('NO', flush=True)

Submission status: Accepted

Solution code:
print(" YNEOS"[(input() in ["5 5 7", "5 7 5", "7 5 5"])::2].strip())

Submission status: Accepted

Solution code:
a = input().split()
five = 0
seven = 0
for i in a:
    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:
s = input().split(" ")
# 5,7,5を判定
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())

list_iroha = [a, b, c]
count = 0
if a + b + c == 17:
    for i in list_iroha:
        if i == 5:
            count += 1
            if count == 2:
                print("YES")
                exit()
print("NO")
exit()

Submission status: Accepted

Solution code:
x = 1
for a in input().split():
  x *= int(a)
if x == 175:
  print('YES')
else:
  print('NO')

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
a, b , c = map(int, input().split())
flag = a*b*c==175 and a+b+c==17 
print('YES' if flag 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:
x, y, z =  map(int, input().split())

if x + y + z == 17:
  print ("YES")
else:
  print ("NO")

Submission status: Accepted

Solution code:
#ABC.042A
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 = list(input().split())
if a.count('5') == 2 and a.count('7') == 1:
  print('YES')
else:
  print('NO')

Submission status: Accepted

Solution code:
data=input().rstrip().split()
num = [int(x) for x in data]
if 5 in num and 7 in num and sum(num)==17:
  print("YES")
else:
  print("NO")

Submission status: Accepted

Solution code:
#ABC042 A
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:
user_input = list(map(int, input().split()))

five = [w for w in user_input if w == 5]
seven = [w for w in user_input if w == 7]

if len(five) == 2 and len(seven) == 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:
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:
import sys
readline = sys.stdin.buffer.readline
a,b,c = map(int,readline().split())

if a == 5 and (b==5 or c==5):
    if b==7 or c==7:
        print("YES")
    else:
        print("NO")
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:
  if a==b==5 or b==c==5 or a==c==5:
    print("YES")
else:
  print("NO")

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys
 
a,b,c = map(int,input().split())
 
if 7 in [a,b,c]:
	if len(list(filter(lambda x:x ==5,[a,b,c]))) is 2:
		print("YES")
		sys.exit()
 
print("NO")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input().split()
t = [int(p) for p in s]
#print(t)

u = sorted(t)
#print(u)

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
abc = list(map(int,input().split()))
haiku = [5,7,5]

for i in range(3):
    if haiku[i] in abc:
        abc.remove(haiku[i])
    else:
        print("NO")
        break
else:
    print("YES")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# a, b, c = map(int, input().split())
ans = 'NO'

lst = list(input().split())
if lst.count('5') == 2:
    if lst.count('7') == 1:
        ans = 'YES'

print(ans)

Submission status: Accepted

Solution code:
a=''.join(sorted(map(str,input().split())))
print('YES' if a=='557' 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()
if s.count('5') == 2 and s.count('7') == 1:
  print('YES')
else:
  print('NO')

Submission status: Accepted

Solution code:
# A - 和風いろはちゃんイージー
a,b,c=list(map(int,input().split()))

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

Submission status: Accepted

Solution code:
S=list(map(int,input().split()))
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()))
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==[5,5,7] or a==[5,7,5] or a==[7,5,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:
a,b,c=map(int,input().split())
d=min(a,b,c)
e=max(a,b,c)
if d==5 and e==7 and a+b+c==17:
  print("YES")
else:
  print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A, B, C = map(str, input().split())
ABC = A+B+C
c1 = ABC.count('7')
c2 = ABC.count('5')
if c1==1 and c2==2:
    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) == (5, 5, 7):
  print("YES")
elif (a, b, c) == (5, 7, 5):
  print("YES")
elif (a, b, c) == (7, 5, 5):
  print("YES")
else:
  print("NO")

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
str = input()
if str.count('5') == 2 and str.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:
n=list(input().split())
print("YES" if (n==["5","7","5"] or n==["7","5","5"] or n==["5","5","7"] ) else "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:
abc = [i for i in input().split(" ")]
if abc.count('5') == 2 and abc.count('7') == 1:
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
'''To count the number of occurrences of 
something in a programs

Use count fucntion of the list
'''


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:
word = list(map(int,input().split()))
#print(word) ['5', '5', '7']
a=0
b=0
for i in range(3):
    if word[i]==int(5):
        a=a+1
for i in range(3):
    if word[i]==int(7):
        b=b+1
if a==2 and b==1:
	print("YES")
else:
  	print("NO")

Submission status: Accepted

Solution code:
List=input().split()
print("YES" if List.count("5")==2 and List.count("7")==1 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:
List = input().split()
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()))
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()
correct=[5,5,7]
flag=False
if a==correct:
    flag=True
print("YES" if flag else "NO")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
l = list(map(int, input().split()))
if min(l) == 5:
    l.remove(5)
    if min(l) == 5:
        l.remove(5)
        if min(l) == 7:
            print ("YES")
            exit ()
print ("NO")

Submission status: Accepted

Solution code:
nums = input().split()
nums.sort()
print( "YES" if ["5","5","7"] == nums else "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:
num = input().split(' ')
if num == ['5','7','5'] or num == ['7','5','5'] or num == ['5','5','7']:
    print('YES')
else:
    print('NO')

Submission status: Accepted

Solution code:
a,b,c = (int(x) for x in 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:
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 = sorted(input().split())
print('YES' if A[0]=='5' and A[1]=='5' and A[2]=='7' else 'NO')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
line = input().split(' ')
C5 = 0
C7 = 0
for i in line:
  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:
a= list(map(int,input().strip().split()))
cnt5 = 0
cnt7 = 0
for i in range(3):
    if a[i] == 5:
        cnt5 += 1
    if a[i] == 7:
        cnt7 += 1

if cnt5==2 and cnt7 ==1:
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A,B,C= list(map(int, input().split()))
check1 = A * B * C
check2 = A + B + C
if check1 == 175 and check2 == 17:
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
  a = list(input().split())
  a = [int(aa) for aa in a]
  a = sorted(a)
  if a==[5,5,7]:
    print('YES')
  else:
    print('NO')
  
  
if __name__ == "__main__":
  main()

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
words = list(input())

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

Submission status: Accepted

Solution code:
I=input().split()
c5=0
c7=0

for i in I:
  if i=="5":
    c5+=1
  elif i=="7":
    c7+=1
if c5==2 and c7==1:
  print("YES")
else:
  print("NO")

Submission status: Accepted

Solution code:
item = list(map(int,input().split()))
if(sum(item) != 17):
  print('NO')
else:
  print('YES')

Submission status: Accepted

Solution code:
input1 = list(map(int,input().split()))
A = input1[0]
B = input1[1]
C = input1[2]
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:
# A
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:
nums = sorted(list(map(int, input().split())))
if nums==[5, 5, 7]:
  print('YES')
else:
  print('NO')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
l = input().split()
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 (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:
#042_A
s=input()
flg=s.count('5')==2 and s.count('7')
print('YES' if flg else 'NO')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
line = input()
num = line.split(" ")

num_5 = num.count("5")
num_7 = num.count("7")

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

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline

a, b, c = map(int, input().split())
match = [a, b, c]
cnt = 0

for i in range(3):
    if match[i] == 5:
        cnt += 2
    elif match[i] == 7:
        cnt += 1

if cnt == 5:
    ans = 'YES'
else:
    ans = 'NO'

print(ans)

Submission status: Accepted

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

nums=[int(i) for i in input().rstrip().split()]

cnt={}
for i in nums:
  cnt.setdefault(i,0)
  cnt[i] += 1

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

Submission status: Accepted

Solution code:
import sys, math

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

def main():
    A = list(map(int,input().split()))
    if A.count(5) == 2 and A.count(7) == 1:
        print("YES")
    else:
        print("NO")

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
a = list(map(int,input().split()))
k = [5,5,7]
a.sort()
if a == k:
  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:
s = list(map(int, input().split()))

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

Submission status: Accepted

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

five = 0
seven = 0
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:
def main():
  count = {5: 0, 7: 0}

  for v in map(int, input().split()):
      if v in count:
          count[v] += 1

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

Submission status: Accepted

Solution code:
i = list(map(int, input().split()))
li = [i[0], i[1], i[2]]
yn = "NO"
if li.count(5) == 2:
  if li.count(7) == 1:
    yn = "YES"
    
print(yn)

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:
def main():
    print("YES" if sorted(list(map(int, input().split()))) == [5, 5, 7] else "NO")


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
A, B, C = map(int, input().split())
L = []
for i in A,B,C:
    L.append(i)
Ls = sorted(L)
if Ls[0] == 5 and Ls[1] == 5 and Ls[2] == 7:
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A, B, C =(int(x) for x in input().split())

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
if __name__ == '__main__':
    a,b,c=[int(i) for i in input().split()]
    if a+b+c==17 and a*b*c%175==0:
        print("YES")
    else:
        print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

if d.count("5")==2 and d.count("7")==1:
    print("YES")

else:
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from collections import Counter
a = list(map(int, input().split()))
a = Counter(a)
if a[5]==2 and a[7]==1:
    print('YES')
else:
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
readline = lambda:sys.stdin.readline().rstrip()
a,b,c = sorted(map(int, readline().split()))
ans = 'YES' if a==b==5 and c==7 else 'NO'
print(ans)

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
l = [0 for i in range(10)]
l[a] += 1
l[b] += 1
l[c] += 1
if l[5] == 2 and l[7] == 1:
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = input().split(' ')
count_5 = 2
count_7 = 1
for num in x:
    if num == '5':
        count_5 -= 1
    elif num == '7':
        count_7 -= 1

if count_5 == 0 and count_7 == 0:
    print('YES')
else:
    print('NO')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/use/bin/env python3

a = [int(s) for s in input().split()]

b, c, d = sorted(a)

if b == 5 and c == 5 and d == 7:
    print('YES')
else:
    print('NO')

Submission status: Accepted

Solution code:
import collections

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

c = collections.Counter(a)

b = c.most_common()
if b[0][0] == 5 and b[0][1] == 2 and b[1][0] ==7:
  print('YES')
else:
  print('NO')

Submission status: Accepted

Solution code:
# coding: utf-8


def main():

    in_data = input()

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

    return 0
  
  
if __name__ == '__main__':
    main()

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
l = list(map(int, input().split()))
count_5 = 0
count_7 = 0
for r in l:
  if r == 5:
    count_5 += 1
  if r == 7:
    count_7 += 1
if count_5 == 2 and count_7 == 1:
  print('YES')
else:
  print('NO')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

for i in a,b,c:
    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 - 和風いろはちゃんイージー

#input A B C as list L
L = list(map(int,input().split()))

#5が2つ,7が1つなら並び替えて5-7-5にできる
if L.count(5) == 2 and L.count(7) == 1:
  print('YES')
else:
  print('NO')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
array = input().split()
five_count, seven_count = (0, 0)
for i in range(3):
    if int(array[i]) == 5:
        five_count += 1
    elif int(array[i]) == 7:
        seven_count += 1
print('YES') if five_count == 2 and seven_count == 1 else print('NO')

Submission status: Accepted

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

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

Submission status: Accepted

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

box = input().rstrip().split()

#文字数が５だったらＦ+1、７だったらＳ+1で最終的にＦ＝２．Ｓ＝１なら正解
F = 0
S = 0

for i in range(len(box)):
    if int(box[i]) == 5:
        F = F + 1
    elif int(box[i]) == 7:
        S = S + 1
    
if (F == 2 and S == 1):
    print("YES")
else:
    print("NO")