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:
import sys, math

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

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

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x,y,z = map(int,input().split())

print('YES')

Submission status: Wrong Answer

Solution code:
a,b,c=input().split()
d=[a,b,c]
print(d.count("5"))
if d.count("5")==2 and d.count("7")==1:
    print("YES")

else:
    print("NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
lis = list(map(int, input().split()))
if lis.count(5)==2 and lis.count(7)==1: print('YES')
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:
A, B, C = map(int, input().split())

if A*B*C == 5*5*7:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
b = input().split() #aの文字列を空白で区切る
c = [int(s) for s in b] #bのそれぞれの要素に対して数値にしてリストに格納
print(c)
num5 = 0
num7 = 0
for i in range(len(c)):
    if c[i] == 5:
        num5 += 1
        continue
    if c[i] == 7:
        num7 +=1
        continue
if num5 == 2 and num7 == 1:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
# coding: utf-8

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

Submission status: Wrong Answer

Solution code:
"""
author : halo2halo
date : 4, Feb, 2020
"""

import sys

# import itertools

# import numpy as np

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

S = readline().decode('utf8').rstrip().split()

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

Submission status: Wrong Answer

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

for i in [5,7,5]:
    if i in nums:
        nums.remove(i)
    else:
        print("No")
        exit()

if len(nums) == 0:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
fiveCount = 0
sevenCount = 0
if a == 5: fiveCount+= 1
if b == 5: fiveCount+= 1
if c == 5: fiveCount+= 1
if a == 7: sevenCount+= 1
if b == 7: sevenCount+= 1
if c == 7: sevenCount+= 1

if fiveCount == 2 and sevenCount == 1:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
a = ['5','7','5']
b = input().split()

for i in b:
    try:
        a.remove(i)
    except:
        print('NO')
        quit()

print('OK')

Submission status: Wrong Answer

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

for i in b:
    try:
        b.remove(i)
    except:
        print('NO')
        quit()

print('OK')

Submission status: Wrong Answer

Solution code:
print('test')

Submission status: Wrong Answer

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


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


if __name__ == "__main__":
    main()

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()))
A.sort
#print(A)
if A==[5,5,7]:
  print('YES')
else:
  print('NO')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if a+b+c == 17:
  if a == 7 or a == 5:
    if b == 7 or b == 5:
      if c == 7 or c == 5:
        print("YES")
      else:
        print("NO")

Submission status: Wrong Answer

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

if a+b+c == 19:
  if a == 7 or a == 5:
    if b == 7 or b == 5:
      if c == 7 or c == 5:
        print("YES")
      else:
        print("NO")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#2033~
import sys
[a,b,c] = list(map(int,input().split()))

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

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
A_B_C = list(map(int, input().split()))
if A_B_C == [5,5,7]:
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys

# 入力
a, b, c = input().split()

# 入力文字列の文字集取得
a_len, b_len, c_len = len(a), len(b), len(c)

cnt5, cnt7 = 0, 0

# 5文字と7文字がいくつあったか
if a_len == 5:
    cnt5 += 1
if a_len == 7:
    cnt7 += 1
if b_len == 5:
    cnt5 += 1
if b_len == 7:
    cnt7 += 1
if c_len == 5:
    cnt5 += 1
if c_len == 7:
    cnt7 += 1

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

Submission status: Wrong Answer

Solution code:
def haiku(sentence_length_list):

    length_five_cnt=0
    length_seven_cnt=0
    for s in sentence_length_list:
        if s=='5':
            length_five_cnt=length_five_cnt+1
        if s=='7':
            length_seven_cnt=length_seven_cnt+1

    if length_five_cnt==2 and length_seven_cnt==1:
        return 'YES'
    else:
        return 'NO'

if __name__=='__main__':
    haiku(input().split())

Submission status: Wrong Answer

Solution code:
def haiku(sentence_length_list):

    length_five_cnt=0
    length_seven_cnt=0
    for s in sentence_length_list:
        if s==5:
            length_five_cnt=length_five_cnt+1
        if s==7:
            length_seven_cnt=length_seven_cnt+1

    if length_five_cnt==2 and length_seven_cnt==1:
        return 'YES'
    else:
        return 'NO'

if __name__=='__main__':
    haiku(input().split())

Submission status: Wrong Answer

Solution code:
args = input().split()
five = 0
seven = 0
for arg in args:
    print(arg)
    if arg == "5":
        five = five + 1
    else:
        seven = seven + 1
if five == 2 and seven == 1:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = input()

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
num= input().split()
count5 = 0
count7 = 0
 
for i in range(len(num)):
    if num[i] == 5:
        count5 += 1
    elif num[i] == 7:
        count7 += 1
    else:
        continue
if count5 == 2 and count7 == 1:
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
num= input().split()
count5 = 0
count7 = 0
 
for i in range(len(num)):
    if num[i] == 5:
        count5 += 1
    elif num[i] == 7:
        count7 += 1
if count5 == 2 and count7 == 1:
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline
li = [int(i) for i in input().split()]
li.sort()
a = "No"
if li[0] == 5 and li[1] == 5 and li[2] == 7 :
    a = "Yes"
print(a)

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, b, c = map(int, input().split())
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+b+c == 19:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
data = [int(i) for i in input().split(" ")]
print(data)
total = 0
for i in data:
    if i==7 or i==5:
        total += i
if total == 17:
  	print("YES")
else:
  	print("NO")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
T = [int(x) for x in input().split()]
print(T)
Ts = sorted(T)
if Ts.count(5)==2 and Ts.count(7):
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A,B,C = map(int,input().split())
if A==1 or B==1 or C==1:
    print('NO')
    
MLT = A*B*C
if MLT == 125:
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = str(input())
print('5'*2 in s and '7' in s)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x = input();
a = '7 7'in x

if a == True :print("YES")
else : print("NO")

Submission status: Wrong Answer

Solution code:
x = input();
a = '7 7'in x

if a == True :print("NO")
else : print("Yes")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
require = ['5','7','5']
data = input().split()
result = True
for d in data:
    if d in require:
        require.pop(require.index(d))
    else:
        result = False
        break
print(result)

Submission status: Wrong Answer

Solution code:
ip = input().split()
A = int(ip[0])
B = int(ip[1])
C = int(ip[2])

boolean = False
if A+B+C==19:
    if A==5 or B==5 or C==5:
        boolean = True

if boolean:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
import sys

a = map(int, sys.stdin.readline().split())

seven = 0
five = 0

for i in a:
    if i == seven:
        seven += 1
    else:
        five += 1

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

Submission status: Wrong Answer

Solution code:
flagY = 0
flagN = 0
a,b,c = input().split(" ")
if len(a)==7:
    if len(b)==5 and len(c)==5:
        flagY = 1
    else:
        flagN = 1
if len(b)==7:
    if len(a)==5 and len(c)==5:
        flagY = 1
    else:
        flagN = 1
if len(c)==7:
    if len(b)==5 and len(a)==5:
        flagY = 1
    else:
        flagN = 1
if flagY ==1:
    print("YES")
elif flagY == 0:
    print("NO")

Submission status: Wrong Answer

Solution code:
flagY = 0
flagN = 0
a,b,c = input().split(" ")
if len(a)==7:
  if len(b)==5 and len(c)==5:
    flagY = 1
  else:
    flagN = 1
if len(b)==7:
  if len(a)==5 and len(c)==5:
    flagY = 1
  else:
    flagN = 1
if len(c)==7:
  if len(b)==5 and len(a)==5:
    flagY = 1
  else:
    flagN = 1
if flagY ==1:print("YES")
elif flagY == 0:print("NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

d = [a, b, c]

if d == [5, 5, 7] or d == [5, 7, 5] or d == [7, 5, 5]:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:

"""
https://atcoder.jp/contests/abc042/tasks/abc042_a
"""

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

if a.sort() == [5,5,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:
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:
a,b,c =map(int, input().split())
setA={a,b,c}

if setA=={5,5,7}:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import collections

abc = collections.Counter(input().split())

print(abc)

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

Submission status: Wrong Answer

Solution code:
import collections

abc = collections.Counter(input().split())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if A + B + C == 17:
    if (max(A,B,C)==7):
        if (min(A,B,C)==5):
            print("YES")
        else:
            print("NO")
    else:
        print("NO")
else:
    print("N0")

Submission status: Wrong Answer

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

if A + B + C == 17:
    if (max(A,B,C)==7):
        if (min(A,B,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) and (B==C==5):
    print("Yes")
elif (A==C==5) and (B==7):
    print("Yes")
elif (A==B==5) and (C==7):
    print("Yes")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
A,B,C=map(int,input().split())
#755の時の検証
if 7==A: 
    if 5==B:
        if 5==C:
            print("YES")
        else:
            print("NO")
    elif 5==C:
        if 5==B:
            print("YES")
        else:
            print("NO")
    else:
        print("NO")
#575の時の検証
if 7==B: 
    if 5==A:
        if 5==C:
            print("YES")
        else:
            print("NO")
    elif 5==C:
        if 5==A:
            print("YES")
        else:
            print("NO")
    else:
        print("NO")
#557の時の検証
if 7==C: 
    if 5==B:
        if 5==A:
            print("YES")
        else:
            print("NO")
    elif 5==A:
        if 5==B:
            print("YES")
        else:
            print("NO")
    else:
        print("NO")

Submission status: Wrong Answer

Solution code:
A,B,C = map(str,input().split())
haiku = A+B+C
if haiku == "755" or "575" or "557":
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
A,B,C = map(str,input().split())
haiku = A+B+C
if haiku == ("755" or "575" or "557") :
  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:
    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:
  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 or a == 7:
  if b == 5:
    if c == 5:
      print('NO')
    else:
      print('YES')
  else:
    if c == 5:
      print('YES')
    else:
      print('NO')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if a * b * c == 175:
    print("yes")
else:
    print("no")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
##### 解けた #####

A,B,C=input().split(" ")

if (len(A)==5 and len(B)==7 and len(C)==5) or (len(A)==7 and len(B)==5 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,B,C = map(int,input().split())
if A == 5 and B == 7 and C == 5:
  print('YES')
else:
  print('NO')

Submission status: Wrong Answer

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

if A == 5 or A == 7:
  if B == 5 or B == 7:
    if C == 5 or C == 7:
      if A + B + C == 17:
        print('Yes')
      else:
        print('No')
    else:
      print('No')
  else:
  	print('No')
else:
  print('No')

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:
i = list(map(int, input().split(" ")))
#print(s)
#print(s[1])
#import pdb; pdb.set_trace()

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = list(map(int, input().split()))
#print(s)
#print(s[1])
#import pdb; pdb.set_trace()

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

Submission status: Wrong Answer

Solution code:
s = list(map(int, input().split()))
print(s)
print(s[1])
#import pdb; pdb.set_trace()

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

Submission status: Wrong Answer

Solution code:
a,b,c=map(int, input().split())
box = [a,b,c]
count1 = box.count(5)
count2 = box.count(7)
if count1 == 2 and count2 ==1:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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:
L = list(map(int, input().split()))
if L[0]==5 and 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())
if (A==B==7 and C==5 ) or (A==C==7 and B==5) or (B==C==7 and A==5):
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

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

A = a[0] + a[1]
if(A==10 or A==12):
  if (a[0] == 7):
    if(a[0] == 5 and a[1] == 5):
      print('YES')
    else:
      print('NO')
  elif (a[1] == 7):
    if(a[0] == 5 and a[1] == 5):
      print('YES')
    else:
      print('NO')
  elif (a[2] == 7):
    if(a[0] == 5 and a[1] == 5):
      print('YES')
    else:
      print('NO')
  else:
    print('NO')
else:
  print('NO')

Submission status: Wrong Answer

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

A = a[0] + a[1]
if(A==10 or A==12):
  if (a[0] == 7):
    if(a[1] == 5):
      print('YES')
    else:
      print('NO')
  elif (a[1] == 7):
    if(a[0] == 5):
      print('YES')
    else:
      print('NO')
  elif (a[2] == 7):
    if(a[0] == 5):
      print('YES')
    else:
      print('NO')
  else:
    print('NO')
else:
  print('NO')

Submission status: Wrong Answer

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

A = a[0] + a[1]
if(A==10 or A==12):
  if (a[0] == 7):
    if(a[1] == 5):
      print('YES')
  if (a[1] == 7):
    if(a[0] == 5):
      print('YES')
  if (a[2] == 7):
    if(a[0] == 5):
      print('YES')
else:
  print('NO')

Submission status: Wrong Answer

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

A = a[0] + a[1] + a[2]
if(A<=22):
  if (a[0] == 7):
    if(a[1] == 5):
      print('YES')
  if (a[1] == 7):
    if(a[0] == 5):
      print('YES')
  if (a[2] == 7):
    if(a[0] == 5):
      print('YES')
else:
  print('NO')

Submission status: Wrong Answer

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

A = a[0] + a[1] + a[2]
if(A<=12):
  if (a[0] == 7):
    if(a[1] == 5):
      print('YES')
  if (a[1] == 7):
    if(a[0] == 5):
      print('YES')
  if (a[2] == 7):
    if(a[0] == 5):
      print('YES')
else:
  print('NO')

Submission status: Wrong Answer

Solution code:
ABClist =  list(map(int, input().split()))
five = 0
seven = 0

for i in range(len(ABClist)):
  if ABClist[i] == 5:
    five += 1
  if ABClist[i] == 7:
    seven += 1
    
if five == 2 and seven == 1:
  print('YES')
else:
  print('NO')

print(seven)
print(five)

Submission status: Wrong Answer

Solution code:
ABClist =  list(map(int, input().split()))
five = 0
seven = 0

for i in range(len(ABClist)):
  if ABClist[i] == 5:
    five += 1
  if ABClist[i] == 7:
    seven += 1
    
if five == 2 and seven == 1:
  print('YES')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
ABClist =  list(map(int, input().split()))
five = 0
seven = 0

for i in range(3):
  if ABClist[i] == 5:
    five += 1
  if ABClist[i] == 7:
    seven += 1
    
if five == 2 and seven == 1:
  print('YES')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
A,B,C = map(int,input().split())
S = A+B+C
if S == 17:
    S = S - max(A, B, C)
    if S == 10:
        S = S - min(A, B, C)
        if S == 5:
            print("YES")
    else:
        print("NO")

Submission status: Wrong Answer

Solution code:
def go_sichi_go(A, B, C):
    S = A+B+C
    if S == 17:
        S = S - max(A, B, C)
        if S == 10:
            S = S - min(A, B, C)
            if S == 5:
                return "YES"
    else:
        return "NO"

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
x,y,z = map(int,input().split())

if(x==5):
  if(y==5):
    if(z==7):
      print("YES")
    else:
      print("NO")
  elif(y==7):
    if(z==5):
      print("YES")
    else:
      print("NO")
elif(x==7):
  if(y==5):
    if(z==5):
      print("YES")
    else:
      print("NO")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
import sys

args = sys.argv

count_5 = 0
count_7 = 0

for i in args:
    print(i)
    if i == '5':
        count_5+=1
    if i == '7':
        count_7+=1

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

Submission status: Wrong Answer

Solution code:
s=[int(i) for i in input().split()]
five_count=0
seven_count=0
for i in s:
    if(s==5):
        five_count+=1
    elif(s==7):
        seven_count+=1
if(five_count==2 and seven_count==1):
    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) and a + b + c == 17:
  print("Yes")
else:
  print("No")