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

Submission status: Wrong Answer

Solution code:
def is_575(bunsetsu_list):
    return bunsetsu_list.count(5) == 2 and bunsetsu_list.count(7) == 1


def main():
  bunsetsu_list = [int(i) for i in input().split()]
  print('YES' if is_575 else 'NO')
  
  
main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# -*- coding: UTF-8 -*-
a = list(map(int, input().split()))
count5 = 0
count7 = 0
for i in a:
    if i == 5:
        count5 += 1
    elif i == 7:
        count7 += 1
if count5 == 2 and count7 == 1:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
# ABC042A - 和風いろはちゃんイージー / Iroha and Haiku (ABC Edition)
a, b, c = list(map(int, input().rstrip().split()))
print("YES" if a == 5 and b == 7 and c == 5 else "NO")

Submission status: Wrong Answer

Solution code:
# ABC042A - 和風いろはちゃんイージー / Iroha and Haiku (ABC Edition)
a, b, c = input().rstrip().split()
print("YES" if len(a) == 5 and len(b) == 7 and len(c) == 5 else "NO")

Submission status: Wrong Answer

Solution code:
from sys import stdin
input1=stdin.readline().rstrip().split()
N=int(input1[0])
L=int(input1[1])
input=[]
for n in range(N):
  input.append(stdin.readline().rstrip())

input.sort()
output=""
for i in range(len(input)):
  output+=input[i]

print(output)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = list(map(int,input().split()))
b = 0
c = 0
for i in a:
  if i == 7:
    b += 1
  elif i == 5:
    c += 1

if b == 2 and c == 1:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
length=[int(x) for x in input().split()]
length.sort()
print ("Yes" if length==[5,5,7] else "No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
length=sorted([int(x) for x in input().split()])
print ("Yes" if length ==[5,5,7] else "No")

Submission status: Wrong Answer

Solution code:
length=sorted([int(x) for x in input().split()])
print ("Yes" if length[0]==length[1]==5 and length[2]==7 else "No")

Submission status: Wrong Answer

Solution code:
length=sorted([int(x) for x in input().split()])
print ("Yes" if length[0]==length[1]==5 and length[2] else "No")

Submission status: Wrong Answer

Solution code:
phrase_length=sorted([len(x) for x in input().split()])
print("Yes" if phrase_length[0]==phrase_length[1]==5 and phrase_length[2]==7 else "No")

Submission status: Wrong Answer

Solution code:
phrase_length=sorted([len(x) for x in input().split()])
print("Yes" if phrase_length[0]==phrase_length[1]==5 and phrase_length[2]==7 else "No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A = 5
B = 7
C = 5
arr = [A, B, C]
fives = 0
sevens = 0

for num in arr:
    if num == 5:
        fives += 1
    if num == 7:
        sevens += 1

if fives == 2 and sevens == 1:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
# A = str(input())
# B = str(input())
# C = str(input())
A = "aaaaa"
B = "aaaaa"
C = "aaaaaaa"
arr = [A, B, C]
fives = 0
sevens = 0
for goku in arr:
    if len(str(goku)) == 5:
        fives += 1
    if len(str(goku)) == 7:
        sevens += 1

if fives == 2 and sevens == 1:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
s=str(input())
n5=s.count('5')
n7=s.count('7')
if n5==2 and n7==1:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A = map(int, input().split(' '))
A_sum = sum(A)
if A_sum == 17:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
S = map(int, input().split(' '))
print(sum(S))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
input_str = ''.join(list(map(str, input())))
if input_str == '755' or input_str == '575' or input_str == '557':
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

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

if 7 in a:
  a.remove(7)
  
if a==[5,5]:
  print('YES')
else:
  print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

if (A[0] == 5) & (A[1] == 5) & (A[2] == 7):
  print("Yes")
else:
  print("No")
  
print(A)

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A=[]
A.append(map(int,input().split()))
if A==[5,7,5] or A==[5,5,7] or A==[7,5,5]:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = list(map(int, input().split()))
d = 0
e = 0
for i in range(3):
  f = a[i]
  if f == 7:
    d += 1
  elif f == 5:
    e += 1
  else:
    break
if d == 2 and e == 1:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
A,B,C=map(int,input().split())
if A+B==10 or A+B==12:
  if A+C==10 or A+C==12:
    if B+C==10 or B+C==12:
      print("YES")
    else:
      print("NO")

Submission status: Wrong Answer

Solution code:
# ABC 042 A - 和風いろはちゃんイージー / Iroha and Haiku (ABC Edition)
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:
# ABC 042 A - 和風いろはちゃんイージー / Iroha and Haiku (ABC Edition)
a ,b, c = map(int,input().split())
all_num =[]
all_num.append(a)
all_num.append(b)
all_num.append(c)
if all_num.count(5)==2 and all_num.count(7)==1:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:

a ,b, c = map(int,input().split())
all_num =[]
all_num.append(a)
all_num.append(b)
all_num.append(c)
if all_num.count(5)==2 and all_num.count(7)==1:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A = input()

if (A[0]==5 or A[0]==7)and (A[1]==5 or A[1]==7)and(A[2]==5 or A[2]==7) :
    if A[0]+A[1]+A[2]==17:
        print("Yes")
else :
    print("NO")

Submission status: Wrong Answer

Solution code:
A = input()

if (A[0]==5 or A[0]==7)and (A[1]==5 or A[1]==7)and(A[2]==5 or A[2]==7) :
    if A[0]+A[1]+A[3]==17:
        print("Yes")
else :
    print("NO")

Submission status: Wrong Answer

Solution code:
A = input()

if (A[0]==5 or A[0]==7)and (A[1]==5 or A[1]==7)and(C[2]==5 or C[2]==7) :
    if A[0]+A[1]+A[3]==17:
        print("Yes")
else :
    print("NO")

Submission status: Wrong Answer

Solution code:
a = list(map(int, input().split()))
n = sum(x == 7 for x in a)
k = sum(x == 5 for x in a)
if n == 2 and k == 1:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
a = list(map(int, input().split()))
n = sum(x == 7 for x in a)
k = sum(x == 5 for x in a)
if n == 2 and k == 1:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
inpstr = input()

inp = inpstr.split(" ")
inp = list(map(int,inp))

c5 = 0
c7 = 0
for i in inp:
  if i==5:
    c5 += 1
  elif i==7:
    c7 += 1
if c5 == 2 and c7 == 1:
  print('YES')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
inpstr = input()

inp = inpstr.split(" ")
inp = list(map(int,inp))

c5 = 0
c7 = 0
for i in inp:
  if inp==5:
    c5 += 1
  elif inp==7:
    c7 += 1
    
if c5 == 2 and c7 == 1:
  print('YES')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
inpt = input().split()
inpt.sort()

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
x = input().split()
five = x.count('5')
seven = x.count('7')
if five==2 and seven==1:print('Yes')
else:print('No')

Submission status: Wrong Answer

Solution code:
mondai = str(input())
if mondai.count('5')==2 and mondai.count('7')==1:print('Yes')
else:print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
flag = True
a = input().split(' ')
while True:
  for i in range(3):
    if a[i] != 5 or a[i] != 7:
      print('NO')
      frag = False
      break
  if frag == False:
    break
  if a[0] + a[1] + a[2] == 17:
    print('YES')
    break
  else:
    print('NO')
    break

Submission status: Wrong Answer

Solution code:
print(["",""][eval(input().replace(" ","*"))==175])

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
A,B,C = map(int,input().split())
L = {A,B,C}
T = {5,7}
if L == T:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
A,B,C = map(int,input().split())
L = {A,B,C}
T = {5,7,5}
if L == T:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
A,B,C = map(int,input().split())
L = [A,B,C]
T = [5,7,5]
if L == T:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
A,B,C=map(int,input().split())
S =set("ABC")
T =set("557")
if S == T:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
A,B,C=map(int,input().split())
S =[A,B,C]
T =[5,5,7]
if S == T:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

l = [a,b,c]
five,seven = 0,0

for i in l:
    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:
text = input().split()
if len(text[0]) + len(text[1]) + len(text[2]) != 17:
  print("NO")
elif len(text[0]) != 5 or len(text[0]) != 7:
  print("NO")
elif len(text[1]) != 5 or len(text[1]) != 7:
  print("NO")
elif len(text[2]) != 5 or len(text[2]) != 7:
  print("NO")
else:
  print("YES")

Submission status: Wrong Answer

Solution code:
text = input().split()
if len(text[0]) + len(text[1]) + len(text[2]) != 17:
  print("NO")
elif len(text[0]) != 5 or len(text[0]) != 7:
  print("NO")
elif len(text[1]) != 5 or len(text[1]) != 7:
  print("NO")
else:
  print("YES")

Submission status: Wrong Answer

Solution code:
list = list(map(int, input().split()))
five = 0; seven = 0
for i in list:
    if i == 5:
        five += 1
    elif i == 7:
        seven += 1
    else:
        pass
if five == 2 & seven == 1:
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
haiku = list(int(i) for i in input().split())
seven = 0
five = 0
for i in range(3):
    if int(haiku[i]) == 7:
        seven += 1
    elif int(haiku[i]) == 5:
        five += 1
if seven == 2 and five == 1:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:

if input().rstrip in ("5 5 7","5 7 5","7 5 5"):
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

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

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

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


    else:
        return print("NO")

judge()

Submission status: Wrong Answer

Solution code:

a,b,c= map(int,input().split())
#
# print(a)
# print(b)
# print(c)
def judge():
    # if a==5 or a==7:
    #     if b==5 or b==7:
    #         if c==5 or c==7:
    if a==5:
        if b==5:
            if c==7:
                return print("YES")
            else:
                return print("NO")
        elif b==7:
            if c==5:
                return print("YES")
            else:
                return print("NO")

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


    else:
        return print("NO")

judge()

Submission status: Wrong Answer

Solution code:

a,b,c= map(int,input().split())
#
# print(a)
# print(b)
# print(c)
def judge():
    if a==5 or a==7:
        if b==5 or b==7:
            if c==5 or c==7:
                return print("YES")
    else:
        return print("NO")

judge()

Submission status: Wrong Answer

Solution code:

a,b,c= map(int,input().split())
#
# print(a)
# print(b)
# print(c)
def judge():
    if a==5 or a==7:
        if b==5 or b==7:
            if c==5 or c==7:
                return print("YES")

judge()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
l=map(int,input().split())
for num in l:
  if num not in [5,7]:
    print("NO")
    exit()
if sum(l) == 17:
  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")
print("NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if s==['5','5','7'] or s==['5','7','5'] or s==['7','5','5']:
    print("OK")
else:
    print("NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = ''.join(sorted(input()))
if s == '  577':
  print('YES')
else:
  print('NO')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

a_b_c = list(map(int, input().split()))
tmp = [5, 7, 5]
flag = True

for i in a_b_c:
    if i in tmp:
        tmp.remove(i)
    else:
        print('No', end='')
        flag = False
        break

if flag:
    print('Yes', end='')

Submission status: Wrong Answer

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

a_b_c = list(map(int, input().split()))
tmp = [5, 7, 5]
flag = True

for i in a_b_c:
    if i in tmp:
        tmp.remove(i)
    else:
        print('No')
        flag = False
        break
        
if flag:
    print('Yes')

Submission status: Wrong Answer

Solution code:
def main():
    li = list(map(int, input().split()))

    c5 = li.count(5)
    c7 = li.count(7)

    print("Yes" if c5 == 2 and c7 == 1 else "No")


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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


def main(data):
    five_num = data.count(5)
    seven_num = data.count(7)
    if five_num == 2 and seven_num == 1:
        print("YES")
    else:
        print("NO")


if __name__ == "__main__":
    main(data)

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

Submission status: Wrong Answer

Solution code:
ar = input().split(" ")
f = 0
s = 0
for a in ar:
  if a == "5":
    f += 1
  elif a == "7":
    s += 1
if f == 5 and s == 1:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
print("YNEOS"[input().count('7')!=2::2])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
abc=list(map(str,input().split()))
if abc.count("7") ==2:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
#coding: utf-8
print(["NO", "YES"][sorted(input()) == ["5","5","7"]])

Submission status: Wrong Answer

Solution code:
#coding: utf-8
print(["NO", "YES"][sorted(input()) =="  557"])

Submission status: Wrong Answer

Solution code:
A = list(input())

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

Submission status: Wrong Answer

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

if A.count('5') == 2 and A.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 = 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:
X = list(map(int, input().split())).sort()

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

Submission status: Wrong Answer

Solution code:
line = input().split()
#print(line)

cnt5 = line.count("5")
cnt7 = line.count("7")

if cnt5 == 2 and cnt7 == 1:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
def solve(xs):                                                                    
  if xs.count(5) == 2 and xs.count(7) == 1:
    print('YES')
  else:                                                                         
    print('NO')

solve([ _ for _ in input().split() ])

Submission status: Wrong Answer

Solution code:
from collections import Counter

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

c = Counter([A, B, C])
if c[5] == 2 and c[7] == 1:
    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) | (a == 5 & b == 7 & c == 5) | (a == 7 & b == 5 & c == 5):
	print("YES")
else:
	print("NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
print("YNEOS"[eval(input().replace(' ','+'))==17::2])

Submission status: Wrong Answer

Solution code:
print("YNEOS"[eval(input().replace(' ','+'))-17::2])

Submission status: Wrong Answer

Solution code:
print("YES")

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split());print("YNEOS"[a+b+c==17and a^b^c==7::2])

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split());print("YNEOS"[a+b+c-17or(a^b^c)-7::2])

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
print("YNEOS"[a+b+c-17or a^b^c-7::2])

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
print("YNEOS"[a+b+c-17or 7-a^b^c::2])

Submission status: Wrong Answer

Solution code:
a = list(map(int, input().split()))
a.sort()
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:
print(['NO','YES'][input().count('7')==2])

Submission status: Wrong Answer

Solution code:
print(['NO','YES'][input().count('1')-1])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A, B, C = map(int, input().split()) #入力された数字から空を除く
numbers = [A, B, C] #入力された数字をnumbersリストに代入する
sum = 0
for num in numbers :
    if num > 7 :
        print("NO")
    elif num>4 : 
        sum += num #数字が4以上の時にsumに加算する
        if sum == 17 :
            if num == 6 : #数字に6が入っている時点で不適なのでNOを出力する
                print("NO")
            elif num != 6 : #合計が17で数字に6が入ってなければ適当なのでYESを出力する
                print("YES")

Submission status: Wrong Answer

Solution code:
A, B, C = map(int, input().split()) #入力された数字から空を除く
numbers = [A, B, C] #入力された数字をnumbersリストに代入する
sum = 0
for num in numbers :
    if num>4 : 
        sum += num #数字が4以上の時にsumに加算する
        if sum == 17 :
            if num == 6 : #数字に6が入っている時点で不適なのでNOを出力する
                print("NO")
            elif num != 6 : #合計が17で数字に6が入ってなければ適当なのでYESを出力する
                print("YES")

    elif num != 17 :
        print("NO")

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split()) #入力された数字から空を除く
numbers = [a, b, c] #入力された数字をnumbersリストに代入する
numbers.sort() #numbersリストを昇順に並べ替える
# print(numbers)
sum = 0
for num in numbers :
    if num>4 :
        sum += num
        if sum == 17 :
            if num == 6 :
                print("NO")
            elif num != 6 :
                print("YES")

    elif num != 17 :
        print("NO")

Submission status: Wrong Answer

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

a.sort()

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a = [int(i) for i in input().split()]
a.sort()
if a == [5, 5, 7]:
 print('Yes')
else:
 print('No')

Submission status: Wrong Answer

Solution code:
abc = list(map(int,input().split()))
five_count = 0
seven_count = 0
for i in abc:
    if i == 5:
        five_count += 1
    elif i == 7:
        seven_count += 1
if five_count == 2 and seven_count == 1:
    print("Yes")
else:
    print("No")