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: Wrong Answer

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

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

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

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


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

else :
    print("NO")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if L == [5, 5, 7]:
  ans = 'Yes'
else:
  ans = 'No'
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
n=[a,b,c]
m=len([i for i in n if i==5])
if m==2:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
S = set(map(int,input().split()))
if S == {5,5,7}:
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
def main(input: list):
    possible575 = sorted(input) == [5, 5, 7]
    print(possible575)


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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input().split()
s = s[0]+s[1]+s[2]

if s.count('5')==2 and s.count('7')==1:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

count = 0
for i in range(3):
    if A[i] == 5 or A[i] == 7:
        count += 1
        
if count == 3:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

Solution code:
INT_MAX=10**18+7
MOD=10**9+7
def INPUT():return list(int(i) for i in input().split())
def LIST_1D_ARRAY(n):return [0 for _ in range(n)]
def LIST_2D_ARRAY(m,n):return [[0 for _ in range(n)]for _ in range(m)]
#################################################################################
a,b,c=INPUT()
if a==5 and b==7 and c==5:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if A.count(5) == 2 and A.count(7) == 1:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
array = list(map(int, input().split()))                                                        
  
array.sort()
 
for i in range(len(array)):
    if i == 0 and array[i] == 5:
        continue
    elif  i==0 and not(array[i]) == 5:
        print("No")
        break
 
    if i==1 and array[i] == 5:
        continue
    elif  i==1 and not(array[i]) == 5:
        print("No")
        break
 
 
    if i==2 and array[i] == 7:
        print("YES")
    elif  i==2  and not(array[i]) == 7:
        print("NO")
        break

Submission status: Wrong Answer

Solution code:
array = list(map(int, input().split()))                                                        
  
sort_array = array.sort()
 
for i in range(len(array)):
    if i == 0 and array[i] == 5:
        continue
    elif  i==0 and not(array[i]) == 5:
        print("No")
        break
 
    if i==1 and array[i] == 5:
        continue
    elif  i==1 and not(array[i]) == 5:
        print("No")
        break
 
 
    if i==2 and array[i] == 7:
        print("YES")
    elif  i==2  and not(array[i]) == 7:
        print("NO")
        break

Submission status: Wrong Answer

Solution code:
array = list(map(int, input().split()))                                                        
  
sort_array = array.sort()
 
for i in range(len(array)):
    if i == 0 and array[i] == 5:
        continue
    elif  i==0 and not(array[i]) == 5:
        print("No")
        break
 
    if i==1 and array[i] == 5:
        continue
    elif  i==1 and not(array[i]) == 5:
        print("No")
        break
 
 
    if i==2 and array[i] == 7:
        print("Yes")
    elif  i==2  and not(array[i]) == 7:
        print("No")
        break

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

a.sort()

if a[0]==a[1]==5 and a[2]==7:
  print('YES')
else:
  print('No')

Submission status: Wrong Answer

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

if a[0]==a[2]==5 and a[1]==7:
  print('YES')
else:
  print('No')

Submission status: Wrong Answer

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

if inp[0] == inp[1]:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
def irohachan(A,B,C):
  if (A == 5 or A ==7) and (B == 5 or B ==7) and (C == 5 or C ==7) and (A+B+C ==17):
    print("YES")
  else:
    print("NO")

Submission status: Wrong Answer

Solution code:

example = ('5', '7', '5')
five = 0
seven = 0
ipt = []
s = input(">")
s = s.split()

for i in s:
    if i == '5':
        five += 1
    elif i == '7':
        seven += 1

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

Submission status: Wrong Answer

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

if s == 17:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a = 5 or 7
b = 5 or 7
c = 5 or 7

s = a + b + c

if s == 17:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

if a == ["5", "5", "7"]:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

s = a + b + c

if s == 17:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

s = a, b, c

if s == (5, 7, 5):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input("ここに3つの数値を入力してください：").split())

if a + b + c == 17:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

count1 = 0
count2 = 0

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
ABC=list(input())
if ABC.count("5")==2 and ABC.count("7")==1:
  print("yes")
else:
  print("no")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

print("Yes" if A == [5,5,7] else "No")

Submission status: Wrong Answer

Solution code:
l = list(map(int, input().split()))
count = count2 = 0
for i in range(3):
  if(l[i] == 5):
    count+=1
  elif(l[i] == 7):
    count2 += 1
    
if(count == 2 and count2 == 1):
    print("Yes")
else:
	print("NO")

Submission status: Wrong Answer

Solution code:
l = list(map(int, input().split()))
count = count2 = 0
for i in range(3):
  if(l[i] == 5):
    count+=1
  elif(l[i] == 7):
    count2 += 1
    
if(count == 2 and count2 == 1):
    print("Yes")
else:
	print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
A, B, C = map(int, raw_input() .split())
if A and B == 5 and C == 7 or A and C == 5  and B == 7 or B and C == 5 and A == 7:
    print "Yes"
else:
    print "No"

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
li = input().split()
if ('7' in li) == True:
    if ('5' in li) == True:
        if li[0] == '5':
            if li[1] == '5' or li[2] == '5':
                print("Yes")
            else:
                print("No")
        elif li[1] == '5' and li[2] == '5':
            print("Yes")
        else:
            print("No")
    else:
        print("No")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
li = input().split()
print(li)
if ('7' in li) == True:
    if ('5' in li) == True:
        if li[0] == '5':
            if li[1] == '5' or li[2] == '5':
                print("Yes")
            else:
                print("No")
        elif li[1] == '5' and li[2] == '5':
            print("Yes")
        else:
            print("No")
    else:
        print("No")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
haiku = list(map(int,input().split()))
haiku.sort()
if haiku ==[5,5,7]:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
haiku = list(map(int,input().split()))
haiku.sort()
if haiku ==[5,5,7]:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
s=list(input().split())
s.sort()
d=int(s[0])*100+int(s[1])*10+int(s[2])
d=d-557
if d==0:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

five = 0
seven = 0
for i in x:
  if i == 5:
    five += five
  elif i == 7:
    seven += seven

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

Submission status: Wrong Answer

Solution code:
li = input().split()
if len(li[0]) ==5 and len(li[1]) == 7 \
    and len(li[2]) == 5:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

if A == 5 and B == 5 and C == 7:
	print("Yes")
elif B == 5 and C == 5 and A == 7:
	print("Yes")
elif C == 5 and A == 5 and B == 7:
	print("Yes")
else:
	print("No")

Submission status: Wrong Answer

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: Wrong Answer

Solution code:
A, B, C = map(int, input().split())
if A*B*C == 175:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
A, B, C = map(int, input().split())
if A*B*C == 175:
   print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a,b,c = map(int,input().split())
if a==7:
    if (b==c) and (b==5):
        print("Yes")
    else : print("No")
else : pass

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

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

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
input = lambda: sys.stdin.readline().rstrip()
yes = lambda boolean: print('Yes') if boolean else print('No')
input_ints = lambda: list(map(int, input().split()))
numbers = input_ints()
numbers.sort()
yes(numbers == [5,5,7])

Submission status: Wrong Answer

Solution code:
import sys
input = lambda: sys.stdin.readline().rstrip()
yes = lambda boolean: print('Yes') if boolean else print('No')
input_ints = lambda: list(map(int, input().split()))
numbers = input_ints().sort()
yes(numbers == [5,5,7])

Submission status: Wrong Answer

Solution code:
import sys
input = lambda: sys.stdin.readline().rstrip()
yes = lambda boolean: print('Yes') if boolean else print('No')
input_ints = lambda: list(map(int, input().split()))
numbers = sorted(input_ints())
yes(numbers == [5,5,7])

Submission status: Wrong Answer

Solution code:
a,b,c = map(int,(input().split()))
num = []
num +=[a,b,c]

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

Submission status: Wrong Answer

Solution code:
l = input().split()
if(int(l[0])==5 and int(l[1])==5):
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

Solution code:
A, B, C = map(int, input().split())
list = [A, B, C]
list.sort()

if list == [5, 5, 7]:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
a=input()
if a=="557":
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

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

if list_in.count(5) == 2 and list_in.count(7) == 1:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a =input()
if a.count("5") == 2 and a.count("7") == 1:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

if a==5 and c==7 and c==5:
     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: Wrong Answer

Solution code:

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

if a==5 and c==7 and c==5:
     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: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

n = [0] * 2

for i in s:
    if i == 5:
        n[0] += 1
    elif i == 7:
        n[1] += 1

if n[0] == 2 and n[1] == 1:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

n = [0] * 5

for i in s:
    if i == 5:
        n[0] += 1
    elif i == 7:
        n[1] += 1

if n[0] == 2 and n[1] == 1:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
A=list(map(int,input().split()))
print("Yes" if A.count(5)==2 and A.count(7)==1 else "No")

Submission status: Wrong Answer

Solution code:
k = input().split()
k.sort()
if k[0] == '5' and k[1] == '5' and k[2] == '7':
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a=''.join(sorted(map(str,input().split())))
print('Yes' if a=='557' else 'No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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

if sorted(a) == [5, 5, 7]:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

str5 = 0
str7 = 0
for i in range(3):
    if a[i] == 5:
        str5 += 1
    if a[i] == 7:
        str7 += 1


if str5 == 2 and str7 == 1:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def easy(A,B,C):
  if (A,B,C)==(5,7,5)or(A,B,C)==(7,5,5)or(A,B,C)==(5,5,7):
   print("Yes")
  else:
   print("No")

Submission status: Wrong Answer

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: Wrong Answer

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: Wrong Answer

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: Wrong Answer

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: Wrong Answer

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(True)
else:
	print(False)

Submission status: Wrong Answer

Solution code:
A, B, C = map(str, input().split())
ABC = A+B+C
print(ABC)
if ABC == '575':
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
A, B, C = map(str, input().split())
ABC = str(len(A))+str(len(B))+str(len(C))
print(ABC)
if ABC == '575':
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

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
print(a,b)
if a==2 and b==1:
	print("YES")
else:
  	print("NO")

Submission status: Wrong Answer

Solution code:
word = list(input())
#print(word) ['5', '5', '7']
a=0
b=0
for i in range(3):
    if word[i]==str(5):
        a=a+1
for i in range(3):
    if word[i]==str(7):
        b=b+1
if a==2 and b==1:
	print("YES")
else:
  	print("NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A = sorted(input().split())
print('Yes' if A[0]=='5' and A[1]=='5' and A[2]=='7' else 'No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A = sorted(input().split())
print('Yes' if A[0]==5 and A[1]==5 and A[2]==7 else 'No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
li = input().split()
a = li[0]
b = li[1]
c = li[2]
if (a==b or b==c or c==a and not a==b==c): print("YES")
else: print("NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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