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

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

Submission status: Wrong Answer

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

count = 0
if A == "7":
    count += 1
if B == "7":
    count += 1
if C == "7":
    count += 1

if count == 1:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
from sys import stdin
 
a = stdin.readline().rstrip()
 
b = [5,5,7]
c = [5,7,5]
d = [7,5,5]
 
def funs(i):
    if i == b:
        return print("YES")
    if i == c:
        return print("YES")
    if i == d:
        return print("YES")
    else:
        return print("NO")
 
funs(a)
from sys import stdin

a = stdin.readline().rstrip()
 
b = [5,5,7]
c = [5,7,5]
d = [7,5,5]
 
def funs(i):
    if i == b:
        return print("YES")
    if i ==c:
        return print("YES")
    if i == d:
        return print("YES")
    else:
        return print("NO")

funs(a)

Submission status: Wrong Answer

Solution code:
from sys import stdin

a = stdin.readline().rstrip()
 
b = [5,5,7]
c = [5,7,5]
d = [7,5,5]
 
def funs(i):
    if i == b:
        return print("YES")
    if i ==c:
        return print("YES")
    if i == d:
        return print("YES")
    else:
        return print("NO")

funs(a)

Submission status: Wrong Answer

Solution code:
from sys import stdin

a = stdin.readline().rstrip()
 
 
b = [5,5,7]
c = [5,7,5]
d = [7,5,5]
 

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

Submission status: Wrong Answer

Solution code:
from sys import stdin

a = stdin.readline().rstrip()
 
 
b = [5,5,7]
c = [5,7,5]
d = [7,5,5]
 

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

Submission status: Wrong Answer

Solution code:
a = [input for i in range(3)]
 
b = [5,5,7]
c = [5,7,5]
d = [7,5,5]

def func():
  if a == b:
    print(YES)
  if a == c:
    print(YES)
  if a == d:
    pritn(YES)
  return print(NO)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

A.sort()
if A[0] == 5:
    if A[1] == 5:
        if A[2] == 7:
            print("Yes")
            exit()
print("No")

Submission status: Wrong Answer

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

A.sort()
if A[1] == 5:
    if A[2] == 5:
        if A[3] == 7:
            print("Yes")
            exit()
print("No")

Submission status: Wrong Answer

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

cond = (a == '5' and b == '7' and c == '5')

if cond:
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

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

if num_list.count(5) == 2 and num_list.count(7) == 1:
    print("Yes")

else:
    print("No")

Submission status: Wrong Answer

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

if (num_list.count(5) == 2) and  (num_list.count(7) == 1):
    print("Yes")

else:
    print("No")

Submission status: Wrong Answer

Solution code:



def main():
    input_str = input()

    a,b,c = input_str.split(' ')
    a = int(a)
    b = int(b)
    c = int(c)
    flag = False

    for i in [a,b,c,'fin']:
        print(i)
        if i == 'fin':
            if a+b+c== 17:
                flag = True
        elif not i in [5,7]:
            break

    if flag:
        print('YES')
    else:
        print('NO')


if __name__=='__main__':
    main()

Submission status: Wrong Answer

Solution code:



def main():
    input_str = input()

    a,b,c = input_str.split(' ')
    a = int(a)
    b = int(b)
    c = int(c)
    flag = False

    for i in [a,b,c,'fin']:
        if i == 'fin':
            if a+b+c== 15:
                flag = True
        elif not i in [5,7]:
            break

    if flag:
        print('YES')
    else:
        print('NO')


if __name__=='__main__':
    main()

Submission status: Wrong Answer

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

import sys
  
if sorted(sys.stdin.read().split(' ')) == ['5', '5', '7']:
  print('YES')
else:
  print('NO')

Submission status: Wrong Answer

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

import sys

args = sys.argv[1:]

if len(args) < 3:
    print('NO')
    sys.exit(0)

count5 = [int(x) for x in args ].count(5)
count7 = [int(x) for x in args ].count(7)
if count5 == 2 and count7 == 1:
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

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

import sys
import os

args = sys.argv[1:]

count5 = [int(x) for x in args ].count(5)
count7 = [int(x) for x in args ].count(7)
if count5 == 2 and count7 == 1:
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()
if s == "7 5 5" or "5 7 5" or "5 5 7":
  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:
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:
def cut():
    buffer = []
    q = ' '
    string = input()
    for i in range(0, len(string)):
        if string[i] == ' ':
            buffer.append(q)
            q = ''
        else:
            if string[i] != ' ':
               q = q + string[i]
    buffer.append(q)
    if buffer[0] == 5:
        print('YES')
    elif buffer[1] == 5:
        print('YES')
    elif buffer[2] == 7:
        print('YES')
    else:
        if (buffer[0] != 5) and (buffer[1] != 5) and (buffer[2] != 7):
             print('NO')
cut()

Submission status: Wrong Answer

Solution code:
def cut( ) :
    buffer=[]
    q=' '
    string=input()
    for i in range(0 , len(string)) :
        if string[i]==' ' :
            buffer.append(q)
            q=''
        else:
            if string[i]!=' ':
                q=q+string[i]
    buffer.append(q)
    
    if buffer[0] == 5:
        print('YES')
    elif buffer[1] == 5:
        print('YES')
    elif buffer[2] == 7:
        print('YES')
    else:
        if (buffer[0] != 5) and (buffer[1] != 5) and (buffer[2] != 7):
         print('NO')

cut()

Submission status: Wrong Answer

Solution code:
def cut( ) :
    buffer=[]
    q=' '
    string=input()
    for i in range(0 , len(string)) :
        if string[i]==' ' :
            buffer.append(q)
            q=''
        else:
            if string[i]!=' ':
                q=q+string[i]
    buffer.append(q)
    buffer = list(map(int, buffer))
    if buffer[0] == 5:
        print("YES")
    elif buffer[1] == 5:
        print("YES")
    elif buffer[2] == 7:
        print("YES")
    else:
        print("NO")

cut()

Submission status: Wrong Answer

Solution code:
l=list(map(int,input().split()))
if l.count(5)==2 and l.count(7)==1 and len(l)==3:
    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())

lis=[A,B,C]

def hantei(list):
    if int(list[0]) == 7:
        if int(list[1]) == 5 and int(list[2]) == 5:
            return True
    if int(list[1]) == 7:
        if int(list[0]) == 5 and int(list[2]) == 5:
            return True
    if int(list[2]) == 7:
        if int(list[0]) == 5 and int(list[1]) == 5:
            return True

if hantei(lis) == True:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Solution code:
A,B,C= input().split()
Sum = A + B + C
if Sum == 17:
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
num=input()
moji=num.split(" ")
 
if int(moji[0])==7 or int(moji[0])==5:
    pass
else:
    print("NO")
    
if int(moji[1])==7 or int(moji[1])==5:
	if int(moji[0])+int(moji[1])+int(moji[2])==19:
		print("YES")
else:
	print("NO")

Submission status: Wrong Answer

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

if int(moji[0])==7 or int(moji[0])==5:
    pass
else:
    print("NO")
    
if moji[1]==7 or moji[1]==5:
	if int(moji[0])+int(moji[1])+int(moji[2])==19:
		print("YES")
else:
	print("NO")

Submission status: Wrong Answer

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

if int(moji[0])==7 or int(moji[0])==5:
    pass
else:
    print("NO")
    
    if moji[1]==7 or moji[1]==5:
        if int(moji[0])+int(moji[1])+int(moji[2])==19:
            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:
B =  map(int, input().split())
counter = 0
five_seven_five = [5,7,5]
for i in B:
    if i in five_seven_five:
        counter += 1
        five_seven_five.remove(i)
    else:
        print('No')
if counter ==3:
    print('Yes')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#空白区切りで複数の値をリストとして入力
input_list = list(map(int,input().split()))
#input_listの値を昇順に並び替え
sort_list = sorted(input_list)

print(sort_list)

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

Submission status: Wrong Answer

Solution code:
#空白区切りで複数の値をリストとして入力
input_list = input().split()
#input_listの値を昇順に並び替え
sort_list = sorted(input_list)

print(sort_list)

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

Submission status: Wrong Answer

Solution code:
print("A,B,Cの値を入力してください")
A,B,C = map(int,input().split())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A,B,C = map(int,input().split())
print('YES' if A+B+C == 17 else 'N0')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
nums = input().split()
sorted(nums)
if nums[0]=='5' and nums[1]=='5' and nums[2]=='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 = sorted(list(map(int,input().split())))

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

Submission status: Wrong Answer

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

if s.count(5) == 2 and s.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 b == 7 and c == 5 :
    print('Yes')
elif a == 5 and b == 5 and c == 7 :
    print('Yes')
elif a == 7 and b == 5 and c == 5 :
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
from functools import reduce
from operator import mul

s = reduce(mul, map(int, input().split(' ')))
print('Yes' if s == 175 else 'No')

Submission status: Wrong Answer

Solution code:
a = list(map(int,input().split(" ")))
b = [5,7,5]

if b == a.sort():
 print("YES")
else:
 print("NO")

Submission status: Wrong Answer

Solution code:
a = []
a = input().split(' ')

if 5 in a:
    a.remove(5)
    if 7 in a:
        a.remove(7)
        if 5 in a:
                print('YES')
        else:
            print('NO')
    else:
        print('NO')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
a = []
a = input().split(' ')

if 5 in a:
    a.remove(5)
    if 7 in a:
        a.remove(7)
        if 5 in a:
                print('OK')
        else:
            print('NO')
    else:
        print('NO')
else:
    print('NO')

Submission status: Wrong Answer

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

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")
    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:
A,B,C = (map(int, input("入力してね:").split()))

if A == 5:
    if B == 5:
        if C == 7:
            print("YES")
    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")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
A,B,C = list(map(int, input("入力してね:").split()))

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

if A == 7:
    if B == 5:
        if C == 5:
            print("YES")
    else:
        print("NO")
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")
    elif B == 7:
        if C == 5:
            print("YES")
        else:
                print("NO")
    else:
        print("NO")

if A == 7:
    if B == 5:
        if C == 5:
            print("YES")
    else:
        print("NO")
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")
    elif B == 7:
        if C == 5:
            print("YES")
        else:
                print("NO")
    else:
        print("NO")

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

five_count=ABC.count("5")
seven_count=ABC.count("7")

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

Submission status: Wrong Answer

Solution code:
nums = [int(e) for e in input().split()]

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
iroha = input()
iroha = iroha.split(" ")
iroha = sorted(iroha)
print(iroha)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b,c = map(int,input().split())
d = [a,b,c]
d = sorted(d)
#print(d)
if d ==[5,5,7]:
  print('Yes')

Submission status: Wrong Answer

Solution code:
a, b, c = map(int,input().split())
d = [a, b, c]
if d.count(5) == 2 and d.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 b == 7 and c == 5:
    print("Yes")

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = list(map(int,input().split()))
N.sort()
if N[0] == 5:
    if N[1] == 5:
        if N[2] == 7:
            print("Yes")
            exit()
print("No")

Submission status: Wrong Answer

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

if 7 in N:
    N.remove(7)
    if 5 in N:
        if sum(N) == 10:
            print("Yes")
            exit()
print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

g = 0
if a == 5:
  g = g + 1
if b == 5:
  g = g + 1
if c == 5:
  g = g + 1

h = 0
if a == 7:
  h = h + 1
if b == 7:
  h = h + 1
if c == 7:
  h = h + 1
  
if h == 2 and g == 1:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
import sys
import math
import bisect

def main():
    A = list(map(int, input().split()))
    A.sort()
    if len(A) == 3 and A == [5, 5, 7]:
        print('Yes')
    else:
        print('No')

if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:

import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, tan, asin, acos, atan, radians, degrees, log2
from itertools import accumulate, permutations, combinations, combinations_with_replacement, product, groupby
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from bisect import bisect, bisect_left
from fractions import gcd
from heapq import heappush, heappop
from functools import reduce
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
def ZIP(n): return zip(*(MAP() for _ in range(n)))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7
 
A = LIST()
if A.sort() == [5, 5, 7]:
	print("YES")
else:
	print("NO")

Submission status: Wrong Answer

Solution code:
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, tan, asin, acos, atan, radians, degrees, log2
from itertools import accumulate, permutations, combinations, combinations_with_replacement, product, groupby
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from bisect import bisect, bisect_left
from fractions import gcd
from heapq import heappush, heappop
from functools import reduce
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
def ZIP(n): return zip(*(MAP() for _ in range(n)))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

A = LIST()

if all(x in A for x in [5,7]) and sum(A) == 17:
	print("Yes")
else:
	print("No")

Submission status: Wrong Answer

Solution code:
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, tan, asin, acos, atan, radians, degrees, log2
from itertools import accumulate, permutations, combinations, combinations_with_replacement, product, groupby
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from bisect import bisect, bisect_left
from fractions import gcd
from heapq import heappush, heappop
from functools import reduce
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
def ZIP(n): return zip(*(MAP() for _ in range(n)))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

A = LIST()
if A.sort() == [5, 5, 7]:
	print("Yes")
else:
	print("No")

Submission status: Wrong Answer

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

count5=0
count7=0

for A in As:
    if A=="5":
        count5+=1
    elif A=="7":
        count7+=1

if count5==2 and count7==1:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a,b,c = map(int, input().split())
s = {a,b,c}
list1 = [a,b,c]
if s == {5,7} and sum(list1) == 17:
  print("Yes")
else :
  print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
def main():
    if input() == '5 7 5': print('YES')
    else: print('NO')

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:

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

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

Submission status: Wrong Answer

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

a5 = 0
a7 = 0
b = 0
i = 0
while i < 3:
    if a[i] == 5:
        a5 += 1
    elif a[i] == 7:
        a7 += 1
    i += 1

if a5 == 2 and a7 == 1:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
haiku=list(map(int, input().split())) #a1 a2 a3
haiku.sort()

print(haiku)
print('YES' if haiku[0]==5 and haiku[1]==5 and haiku[2]==7 else 'NO')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A, B, C = map(int, input().split())
MC = [A, B, C]
if MC.count(5)==2:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
A, B, C = input().split()
MC = [A, B, C]
if MC.count("5")==2:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:

l,m,n = map(int,input().split())
cnt =0
if l == 5:
  cnt += 1
if m == 7:
  cnt += 1
if l == 5:
  cnt += 1
if cnt == 3:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

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

l = [A, B, C]

l = sorted(l, reverse=True)

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

Submission status: Wrong Answer

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

l = [A, B, C]

l = sorted(l, reverse=True)

if A == B == 5 and C == 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")
if A == 5 and B == 7 and C == 5: print("YES")
if A == 7 and B == 5 and C == 5: print("YES")
else: print("NO")

Submission status: Wrong Answer

Solution code:
a=list(map(int,input().split()))
if sum(a) == 17:
	a.sort()
	if a[0]==5 and a[1]==5:
		print('Yes')
	else:
		print('No')			
else:
	print('No')

Submission status: Wrong Answer

Solution code:
l=[int(x) for x in input().split()]
if sum(l)==17:
	print("yes")
else:
	print('no')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
p=set(input());print("YNEOS"[p=={" ",5,7}::2])

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

if l == [5,5,7] or l == [5,7,5] or l == [7,5,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) 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: 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")