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

Submission status: Wrong Answer

Solution code:
line = input()

if line == '5 5 7' or line == '7 5 5':
  print('YES')
  
else:
  print('NO')

Submission status: Wrong Answer

Solution code:
line = input()

if line == '5 5 7' or line == '7 5 5':
  print('Yes')
  
else:
  print('NO')

Submission status: Wrong Answer

Solution code:
line = input()

if line == '5 5 7' or line == '7 5 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:
def iroha():
    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:
n = input().split()
for i in range(3):
  n[1] = int(n[i])

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

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

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

if 7 == a[0]:
    if 5 == a[1] and 5 == a[2]:
        print("YES", end="\n")
elif 5 == a[0]:
    if (7 == a[1] and 5 == a[2]) or (5 == a[1] and 7 == a[2]):
        print("YES", end="\n")
else:
    print("NO", end="\n")

Submission status: Wrong Answer

Solution code:
print(['Yes','No'][sum(list(map(int,input().split()))) != 17])

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
def main():
    a, b, c = map(int, input().split())
    list = []
    list.append(a)
    list.append(b)
    list.append(c)

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

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
x = input().split()
fn = 0
sn = 0
 
for i in range(len(x)):
  if int(x[i]) == 5:
    fn += 1
  elif int(x[i]) == 7:
    sn += 1
 
if fn == 2:
  if sn == 5:
    print("YES")
  else:
    print("NO")
else:
  print("NO")

Submission status: Wrong Answer

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

if __name__ == "__main__":
    str_list = [map(int, input().split())]
    if str_list.count(5) == 2 and str_list.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==5):
	print("Yes")
elif(b==5 and c==5):
	print("Yes")
elif(a==5 and c==5):
	print("Yes")
else:
	print("No")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

for i in range(3):
    if (a[i] == 5):
        cnt_five += 1
    if (a[i] == 7):
        cnt_seven += 1

if(cnt_five == 2 and cnt_seven == 1):
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
from heapq import heappush, heappop, heapify
import math
from math import gcd
import itertools as it
from collections import deque 

input = sys.stdin.readline

def inp():
    return int(input())
def inpl():
    return list(map(int, input().split()))

INF = 1001001001

# ---------------------------------------

def main():
    A = inpl()
    A.sort()
    if A[0]==A[1]==5 and A[2]==7:
        print("Yes")
    else:
        print("No")

main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
ls = list(map(str, input().split()))
# ok_list = ['5', '7', '5'] or ['7', '5', '5'] or ['5', '5', '7']

if ls == ['5', '7', '5']:
    print("Yes")
elif ls == ['7', '5', '5']:
    print("Yes")
elif ls == ['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 + 7 + 5:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
from sys import stdin, stdout
from time import perf_counter

import sys
sys.setrecursionlimit(10**9)
mod = 10**9+7



n = sorted([int(item) for item in input().split()])
print("Yes" if n[2] == 7 else "No")

Submission status: Wrong Answer

Solution code:
from sys import stdin, stdout
from time import perf_counter

import sys
sys.setrecursionlimit(10**9)
mod = 10**9+7



n = sorted([int(item) for item in input().split()])
print("YES" if n[2] == 7 else "NO")

Submission status: Wrong Answer

Solution code:
abc = list(map(int,input().split()))
ans = "No"
if 5 in abc:
  abc.remove(5)
  if 5 in abc and 7 in abc:
    ans = "Yes"

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

N5=0
N7=0

if a==5:
  N5 +=1
elif a==7:
    N7 +=1

if b==5:
  N5 +=1
elif b==7:
    N7 +=1
    
if c==5:
  N5 +=1
elif c==7:
    N7 +=1
    
if (N5==2)*(N7==1):
  print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

N5=0
N7=0

if a==5:
  N5 +=1
elif a==7:
    N7 +=1

if b==5:
  N5 +=1
elif b==7:
    N7 +=1
    
if c==5:
  N5 +=1
elif c==7:
    N7 +=1
    
if (N5==2)*(N7==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:
data=list(input().split())
a=0
b=0
for i in range(0,3):
    if data[i]=='5':
        a=a+1
    elif data[i]=='7':
        b=b+1
if (a==1 and b==2):
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
data=list(input().split())
a=0
b=0
for i in range(0,3):
    if data[i]==5:
        a=a+1
    elif data[i]==7:
        b=b+1
if (a==1 and b==2):
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
a,b,c=input().split();print('NYOE S'[a=='5' and b=='7' and c=='5'::2])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b,c = 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=list(map(int,input().split()))

b=a[0]+a[1]+a[2]
c=a[0]-a[1]-a[2]

if b==17 and c==-7:
  
  print('YES')

else:
  print('NO')

Submission status: Wrong Answer

Solution code:
from sys import stdin, stdout
from time import perf_counter

import sys
sys.setrecursionlimit(10**9)
mod = 10**9+7

# import sys
# sys.stdout = open("e:/python/cp/output.txt","w")
# sys.stdin = open("e:/python/cp/input.txt","r")

l = [int(item) for item in input().split()]
resutl = sorted(l)
print("YES" if resutl == l else "NO")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
A = "ふるいけや"
B = "かわずとびこむ"
C = "いけのおと"

haiku = []
haiku.append(len(A))
haiku.append(len(B))
haiku.append(len(C))
if sum(haiku) == 17:
    if max(haiku) == 7:
        if min(haiku) == 5:
            print("Yes")
        else:
            print("No")        
    else:
        print("No") 
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a = "ふるいけや"
b = "かわずとびこむ"
c = "いけのおと"

def iroha(a,b,c):
    haiku = []
    haiku.append(len(a))
    haiku.append(len(b))
    haiku.append(len(c))
    if sum(haiku) == 17:
        if max(haiku) == 7:
            if min(haiku) == 5:
                return "Yes"
            else:
                return "No"
        else:
            return "No" 
    else:
        return "No"

print(iroha(a,b,c))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = input()
if "5" and "5" and "7" in a:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = 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 = 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,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 c==7:
  print("YES")
else:
  print('NO')

Submission status: Wrong Answer

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

if A+B+C==17:
    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("N0")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
arr = list(map(lambda x: int(x), input().split(" ")))

if arr.count(5) == 2 and arr.count(7) == 1:
    print("OK")
else:
    print("NG")

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:
ans = []
A, B, C = map(int, input().split())
ans.append(A)
ans.append(B)
ans.append(C)
if ans.count(5) == 2 and ans.count(7) == 1:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
# cook your dish here
abc=list(map(int , input().split()))
# frequency check is used
count=0
element=5
element1=7
frequency1=abc.count(5)
frequency2=abc.count(7)
if(frequency1 == 2):
    if(frequency2 == 1):
        count+=1
        
    else:
        count+=0
        
else:
    count+=0
    
if(count == 1):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a,b,c =map(int,input().split() )
d = a + b + c
e = a * b * c
if(d == 17 and e == 175):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
# list に入力を格納
list = list(map(int, input().split()))
# 小さい順に並び替え
list.sort()

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

Submission status: Wrong Answer

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

if list[0] == 5 and list[1] == 5 and list[7] == 7:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = input()
A = int(a[0])
B = int(a[2])
C = int(a[4])

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

Submission status: Wrong Answer

Solution code:
a = input()
A = int(a[0])
B = int(a[2])
C = int(a[4])

if(A==5 & B==7 & C==5):
    print('yes')
elif(A==7 & B==5 & C==5):
    print('yes')
elif(A==5 & B==5 & C==7):
    print('yes')
else:
    print('no')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
from sys import stdin, stdout

def main():
    line = stdin.readline()
    parts = line.split()
    parts.sort()

    stdout.write('Yes' if int(parts[0])==5 and int(parts[1])==5 and int(parts[2])==7 else 'No')

main()

Submission status: Wrong Answer

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

D = 0
E = 0

if A == 5:
    D += 1

if A == 7:
    E += 1

if B == 5:
    D += 1

if B == 7:
    E += 1

if C == 5:
    D += 1

if C == 7:
    E += 1

if D == 2 and E==1:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
def haiku(a,b,c):
    if a==5 or a==7:
        if b==5 or b==7:
            if c==5 or c==7:
                if a+b+c==17:
                    return 'YES'
                else:
                    return'NO'
            else:
                return'NO'
        else:
            return'NO'  
    else:
        return'NO'
                
                
num=input('input numbers: ')
num=num.split()
a=int(num[0])
b=int(num[1])
c=int(num[2])
print(haiku(a,b,c))

Submission status: Wrong Answer

Solution code:
a = input().split()
five = a.count(5)
seven = a.count(7)

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

Submission status: Wrong Answer

Solution code:
s=input().split()
print(["NO","YES"]["5" in s and "7" in s and ("5 5" in s or "5 7" in s)])

Submission status: Wrong Answer

Solution code:
S = input()

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

Submission status: Wrong Answer

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

print(syl)

syl2=[5, 5, 7]

if syl == syl2:
	print('YES')
else:
	print('NO')

Submission status: Wrong Answer

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

A.sort()
flag=0

if A[0]==5:
    if A[1]==5:
        if A[2]==7:
            print("YES")
            flag+=1

if flag==0:
    print("No")

Submission status: Wrong Answer

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

A.sort()
flag=0

if A[0]==5:
    if A[1]==5:
        if A[2]==7:
            print("YES")
            flag+=1
            
if flag==0:
    print("No")

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 seven == 1 and five == 2:
  print("TRUE")
else:
    print("NO")

Submission status: Wrong Answer

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

five = 0
seven = 0

for i in [a,b,c]:
  if i == 5:
    five += 1
  elif i == 7:
    seven += 1
  else:
      pass

if seven == 1 and five == 2:
  print("TRUE")
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:
a =list(map(int,input().split()))
if sum(a) == 19 and a.count("7") == 2:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b,c = map(str, input().split())
ok = ["575", "557", "755"]
if (a+b+c in ok):
  print("OK")
else:
  print("NG")

Submission status: Wrong Answer

Solution code:
def check():
  A = list(map(int, input().split()))
  if A.count(5)!=2 or A.count(7)!=1:
    return 'No'
  return 'Yes'
print(check())

Submission status: Wrong Answer

Solution code:
def check():
  A = list(map(int, input().split()))
  if A.count(7)!=2 or A.count(5)!=1:
    return 'NO'
  return 'YEs'
print(check())

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n_5 = 0
n_7 = 0

a = map(int, input().split())
for i in a:
    if i == 5:
        n_5 += 1
    elif i == 7:
        n_7 += 1

if n_5 == 2 and n_7 == 1:
    print("yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
n_5 = 0
n_7 = 0

a = map(int, input().split())
for i in a:
    if i == 5:
        n_5 += 1
    elif i == 7:
        n_7 += 1

if n_5 == 2 and n_7 == 1:
    print("yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
mylist = [4,7,5]
x = mylist.count(5)
y = mylist.count(7)
 
if x == 2 and y == 1:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
mylist = list(map(int,input().split()))
x = mylist.count(5)
y = mylist.count(7)

if x == 2 and y == 1:
  print("Yes")
else:
  print("NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if sum(val1)==17:
  print("OK")
else:
  print("NO")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
form = input()

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

Submission status: Wrong Answer

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

if form == [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

if d == 17:
  print('yes')
else:
  print('no')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

haiku()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

    
test()

Submission status: Wrong Answer

Solution code:
A, B, C =map(int,input().split())
# B should be 7 and A and C should be 5
if A==7:
    a=A
    b=B
    A=b
    B=a
elif C==7:
    c=C
    b=B
    C=b
    B=c
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())
ans = 'YES' if (a == 5) and (b == 7) and (c==5) else "NO"
print(ans)

Submission status: Wrong Answer

Solution code:
import sys

read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 9)
INF = 1 << 60
MOD = 1000000007


def main():
    X = list(map(int, readline().split()))

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

    return


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
a = input().split()
countF = 0
countS = 0
for i in range(3):
    countF += a[i] == 5
    countS += a[i] == 7
if countF == 2 and countS == 1:
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
inp=input().split()
prod = int(inp[0]) * int(inp[1]) * int(inp[2])
resid1 = prod//5
resid2 = prod//7
if (prod == 175) & (resid1==0) & (resid2==0):
  print('YES')
else:
  print('NO')

Submission status: Wrong Answer

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

l=[a,b,c,a,b]
for x in range(3):
    if l[x]==l[x+1] and l[x]==5 and l[x]==7:
        print('YES')
        sys.exit()
print('NO')

Submission status: Wrong Answer

Solution code:
print('YNEOS'[eval(input().replace(*' *'))!=245::2])

Submission status: Wrong Answer

Solution code:
#!/usr/bin/python
# -*- coding: UTF-8 -*-

import sys


def input():
    return sys.stdin.readline().strip()


def _main():
    input()
    s = sorted(list(input().split()))
    print("".join(s))


if __name__ == "__main__":
    _main()

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
print('Yes' if a+b+c == 17 else '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:
a,b,c = map(int,input().split())
if a + b + c == 19:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

flag_5 = flag_7 = 0

for i in l:
    if i == 5:
        flag_5 += 1
    if i == 7:
        flag_7 += 1

if flag_5 == 2 and flag_7 == 1:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
#入力
lst = input().split()

#整数値化
for i in lst:
  i = int(i)

#ソート
lst.sort()

#出力
if lst == [5, 5, 7]:
  print('YES')
else:
  print('NO')

Submission status: Wrong Answer

Solution code:
a = input()
a = [int(i)for i in a.split(" ")]
print((a[0] == 5 or a[0] == 7) and (a[1] == 5 or a[1] == 7) and (sum(a) == 17))

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

seven = 0
five = 0

for i in range(len(data)):
	if data[i] == 7:
		seven += 1
	elif data[i] == 5:
		five +=1

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

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

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

x = [A, B, C]

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

Submission status: Wrong Answer

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

iroha=[A,B,C]

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

Submission status: Wrong Answer

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

iroha=[A,B,C]

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

Submission status: Wrong Answer

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

iroha=[A,B,C]

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

Submission status: Wrong Answer

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

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

five_counter=0
seven_counter=0

def counter(x):
    global five_counter,seven_counter
    if x==5:
        five_counter += 1
    elif x==7:
        seven_counter += 1

counter(A)
counter(B)
counter(C)

if (five_counter==2) & (seven_counter ==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 A==5 or A==7:
        if B==5 or B==7:
            if C==5 or C==7:
                print("Yes")
            else:
                print("No")
        else:
            print("No")
    else:
        print("No")
else:
    print("No")

Submission status: Wrong Answer

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

if (A+B+C == 17) & (A*B*C==175):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a,b,c = map(int,input().split())#標準入力を行う
if (a == 5 or a== 7):
    if(b == 5 or b == 7):
        if(c == 5 or c == 7):
            if(a + b + c == 17):
                print("YES")
print("NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

s = "".join(s)

print(s)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a, b, c = [int(3) for i in input().split() ]

mylist = [5, 7]

if ( a in mylist and b in mylist and c in mylist and a + b + c == 17 ):
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
def main():
    A, B, C = map(int, input().split())
    if (A == 5 and B == 7 and C == 5) or (A == 7 and B == 5 and C == 5) or (A == 5 and B == 5 and C ==7):
        print('YES')
    else:
        print('No')
main()

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

s = A, B, C
print('Yes') if s.count(5) == 2 and s.count(7) == 1 else print('No')

Submission status: Wrong Answer

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

s = A, B, C
print('Yes') if s.count(5) == 2 and s.count(7) == 1 else print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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