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: Accepted

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==5:
                return print("YES")
            else:
                return print("NO")
        else:
            return print("NO")


    else:
        return print("NO")

judge()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
l=list(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: Accepted

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: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A,B,C=[int(x) for x in 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==C==5:
    print ("YES")
	
else:
	print("NO")

Submission status: Accepted

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: Accepted

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

if sum(lis) == 17 and 5 in lis and 7 in lis:
  print("YES")
else:
  print("NO")

Submission status: Accepted

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: Accepted

Solution code:

def main():
    buf = input()
    buflist = buf.split()
    A = int(buflist[0])
    B = int(buflist[1])
    C = int(buflist[2])
    len_list = list(sorted([A,B,C]))
    if len_list == [5,5,7]:
        print("YES")
    else:
        print("NO")

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# スペース区切りの整数の入力
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("NO")

Submission status: Accepted

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: Accepted

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


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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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: Accepted

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

list = []
list.append(A)
list.append(B)
list.append(C)
list.sort()

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

Submission status: Accepted

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: Accepted

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

if A+B+C == 17 and A*B*C == 175:
    print('YES')
else:
    print('NO')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    A, B, C = map(int, input().split())
    count5 = 0
    count7 = 0
    if A == 5:
        count5 += 1
    elif A == 7:
        count7 += 1

    if B == 5:
        count5 += 1
    elif B == 7:
        count7 += 1

    if C == 5:
        count5 += 1
    elif C == 7:
        count7 += 1

    if count5 == 2 and count7 == 1:
        print("YES")
    else:
        print("NO")


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
S = sorted(list(map(int, input().split(' '))))
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: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
from sys import stdin

s = sorted([int(x) for x in stdin.readline().rstrip().split()])
if s == [5,5,7]:
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

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: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#! /usr/bin/python3
# A - 和風いろはちゃんイージー / Iroha and Haiku (ABC Edition)
"""
    3 つの文節の長さを表す整数 A,B,C が与えられるので、
    それらの文節を並び替えて五七五にできるか判定してください。

    入力: A B C
    出力: YES / NO
"""


A, B, C = map(int, input().split())
# 標準入力
list_ABC = [A, B, C]
test_mode = False

if test_mode is True:
    print(list_ABC)


def haiku_TF(x):
    """
    575ができるか判定
    """
    if x in ([5, 7, 5], [7, 5, 5], [5, 5, 7]):
        return True
    return False


if haiku_TF(list_ABC):
    print('YES')
else:
    print('NO')

Submission status: Accepted

Solution code:
from collections import defaultdict, Counter
from itertools import product, groupby, count, permutations, combinations
from math import pi, sqrt
from collections import deque
from bisect import bisect, bisect_left, bisect_right
from string import ascii_lowercase
from functools import lru_cache
import sys
sys.setrecursionlimit(10000)
INF = float("inf")
YES, Yes, yes, NO, No, no = "YES", "Yes", "yes", "NO", "No", "no"
dy4, dx4 = [0, 1, 0, -1], [1, 0, -1, 0]
dy8, dx8 = [0, -1, 0, 1, 1, -1, -1, 1], [1, 0, -1, 0, 1, 1, -1, -1]


def inside(y, x, H, W):
    return 0 <= y < H and 0 <= x < W


def ceil(a, b):
    return (a + b - 1) // b


def main():
    C = Counter(list(map(int, input().split())))
    if C[5] == 2 and C[7] == 1:
        print(YES)
    else:
        print(NO)


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
x,y,z=map(int,input().split())
if (x==y==5 and z==7) or (y==z==5 and x==7) or (z==x==5 and y==7):
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = list(map(int, input().split()))
five_count = a.count(5)
seven_count = a.count(7)

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
list = list(input().split())
print(['NO', 'YES'] [list.count('5') == 2 and list.count(7) == 0])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#coding: utf-8
li = list(map(int, input().split()))
print("YES" if li.count(5)==2 and li.count(7)==1 else "NO")

Submission status: Accepted

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

Submission status: Accepted

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

if sum(log)==17 and 5 in log and 7 in log:
    print('YES')
else:
    print('NO')

Submission status: Accepted

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

if sum(log)==17 and 5 in log and 7 in log:
    print('YES')
else:
    print('NO')

Submission status: Accepted

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

#print(l)

l.sort()

#print(l)

if l == [5, 5, 7]:
    print("YES")

else:
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A = list(input())

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

Submission status: Accepted

Solution code:
A = input()

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

Submission status: Accepted

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

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

Submission status: Accepted

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: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

a = input().split()
b = ['5', '7', '5']

f = True
for i in a:
    if i in b:
        b.remove(i)
    else:
        f = False
        break

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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: Accepted

Solution code:
from collections import Counter
li = list(map(int, input().split()))
d = Counter(li)
if not (d[5]==2 and d[7]==1):
  print('NO')
else:
  print('YES')

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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: Accepted

Solution code:
A=sorted(list(input().split()))
print(['NO','YES'][A.count('5')==2and A.count('7')])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
def rythm_check(abc):
    sum = 0
    for i in abc.split():
        num = int(i)
        if num == 5 or num == 7:
            sum += num
        else:
            return 'NO'

    if sum == 17:
        return 'YES'
    else:
        return 'NO'

abc = input()
print (rythm_check(abc))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
l = input().split()
count5 = 0

if len([s for s in l if '5' in s]) == 2 and len([s for s in l if '7' in s]) == 1:
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
print(["NO","YES"][sorted(input())==[' ', ' ', '5', '5', '7']])

Submission status: Accepted

Solution code:
n = input()
if n.count('5')==2:
  print(' YNEOS'[n.count('7')::2])
else:
  print('NO')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
print(['YES','NO'][input().count('7')==2])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

def main():
    arry = list(map(int, input().split()))
    if arry.count(5) == 2 and arry.count(7) == 1:
        print('YES')
    else:
        print('NO')

if __name__ == '__main__':
    main()

Submission status: Accepted

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

if a*b*c == 175:
    print('YES')
else:
    print('NO')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
w = [0] * 100
w[a] += 1
w[b] += 1
w[c] += 1
if w[5] == 2 and w[7] == 1:
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
a = map(int,input().split(" "))
cnt5=0
cnt7=0
for n in a:
    if(n==5):
        cnt5+=1
    if(n==7):
        cnt7+=1
if(cnt5==2 and cnt7 == 1):
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A, B, C = map(int, input().split()) #入力された数字から空を除く
numbers = [A, B, C] #入力された数字をnumbersリストに代入する
numbers.sort()
a = numbers[0]
b = numbers[1]
c = numbers[2]
#print(a, b, c)
if a == 5 and b == 5 and c == 7 :
    print("YES")
else :
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
abc = list(input().split())
counter_f = 0
counter_s = 0
for i in abc:
    if int(i) == 5:
        counter_f += 1
    elif int(i) == 7:
        counter_s += 1
if counter_f==2 and counter_s ==1:
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

Solution code:

def main():
    n =list(map(int,input().split()))

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

if __name__ == "__main__":
        main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from collections import Counter
print("YES" if Counter(input().split()) == Counter('575') else "NO")

Submission status: Accepted

Solution code:
five = 0
seven = 0
for xi in input().split():
    if xi == '5':
        five += 1
    elif xi == '7':
        seven += 1
print('YES' if five == 2 and seven == 1 else 'NO')

Submission status: Accepted

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

a = 0
b = 0
for i in t:
  if int(i) == 7:
    a += 1
  elif int(i) == 5:
    b += 1
if a == 1 and b == 2:
  print("YES")
else:
  print("NO")

Submission status: Accepted

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

Submission status: Accepted

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: Accepted

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

Submission status: Accepted

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

l = sorted(l)

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
num,num_two,num_three = map(int,input().split())
lis = [num,num_two,num_three]
print("YES" if lis.count(5) == 2 and lis.count(7) == 1 else "NO")

Submission status: Accepted

Solution code:
ABC = [int(i) for i in input().split()]
count5 = 0
count7 = 0
ans = "NO"

for i in ABC:
    if i == 5: count5 += 1
    if i == 7: count7 += 1

if count5 == 2 and count7 == 1:
    ans = "YES"

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#coding:utf-8
n1=[5,5,7]
n=[int(i) for i in input().split()]
n.sort()
if(n==n1):
  print("YES")
else:
  print("NO")

Submission status: Accepted

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

Addition = A+B+C
if Addition != 17:
    haiku = False
else:
    if ((A==5 or A==7) and (B==5 or B==7) and (C==5 or C==7)):
        haiku = True
    else:
        haiku = False
    
if haiku:
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

if A.count(5) == 2 or A.count(7) == 1:
	print('YES')
else:
	print('NO')

Submission status: Accepted

Solution code:
a, b, c = map(int, raw_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: Accepted

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

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

Submission status: Accepted

Solution code:
A, B, C = list(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: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
if __name__ == "__main__":
    l = sorted(int(s) for s in input().split())
    print("YES" if l == [5, 5, 7] else "NO")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
print "YES" if [5, 5, 7] == sorted([int(x) for x in raw_input().split()]) else "NO"

Submission status: Accepted

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

Submission status: Accepted

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

if ((a == 7) and (b == 5) and (c == 5)) 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: Accepted

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

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

if A + B + C == 17:
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
a = list(map(int,input().split()))
if sum(a) == 17:
  print("YES")
else:
  print("NO")

Submission status: Accepted

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

Submission status: Accepted

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: Accepted

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

Submission status: Accepted

Solution code:
import sys

if __name__ == '__main__':
    X = list(map(int, sys.stdin.readline().split()))

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

Submission status: Accepted

Solution code:
ans=list(map(int,input().split()))
dic={}
flg=0
for x in ans:
    if(x!=5 and x!=7):
        flg=-1
        break
    else:
        dic[str(x)]=dic.get(str(x),0)+1
if(flg==-1):
    print("NO")
else:
    if(dic["5"]!=2 or dic["7"]!=1):
	       print("NO")
    else:
 	      print("YES")

Submission status: Accepted

Solution code:
A=input()
print(['NO','YES'][(A.count('5')==2)*(A.count('7')==1)])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=[int(i) for i in input().split()]
#print(s,len(s))
if len(s)==3 and s.count(5)==2 and s.count(7)==1:
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = [int(i) for i in input().split()]
x.sort()
print("YES" if x[0]==5 and x[1]==5 and x[2]==7 else "NO")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

count = 0
for i in n:
    if int(i) == 5:
        count += 5
    elif int(i) == 7:
        count += 7

if count == 17:
    print("YES")
else:
    print("NO")