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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
"""
Created on Fri Jul 26 03:56:38 2019

@author: matsui
"""

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

L=[A,B,C]
if 7 in L:
    L.remove(7)
    if L == [5,5]:
        ans=True
if ans:
    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

abc = [int(x) for x in sys.stdin.readline().split()]
abc.sort()
if abc == [5, 5, 7]:
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
n = input().split()
result = 'NO'
if n.count('5') == 2 and n.count('7') == 1:
  result = 'YES'
print("{}".format(result))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#ABC042a
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**6)

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

Submission status: Accepted

Solution code:
a = input()
if a=='7 5 5':
    print ('YES')
elif a=='5 7 5':
    print ('YES')
elif 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 = list(map(int,input().split(' ')))
if a*b*c==175:
    print('YES')
else:
    print('NO')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

if lism == [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==175 else "NO")

Submission status: Accepted

Solution code:
import sys, re, os
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import permutations, combinations, product, accumulate
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from fractions import gcd
 
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def S_MAP(): return map(str, input().split())
def LIST(): return list(map(int, input().split()))
def S_LIST(): return list(map(str, input().split()))

sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

a, b , c = MAP()
if a + b + c == 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 and b ==7:
        print("YES")
    elif a ==7 and b ==5:
        print("YES")
    elif a ==5 and b ==5:
        print("YES")
    else: 
        print("NO")
else:
    print("NO")

Submission status: Accepted

Solution code:
a, b, c = input().split()
abc = sorted([a, b, c])
ans = 'NO'
if abc[0] == '5' and abc[1] == '5' and abc[2] == '7':
  ans = 'YES'
print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

dic = {}

dic[5] = 0
dic[7] = 0

for i in ABC:

    if i == 5 or i == 7:

        dic[i] += 1

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

Submission status: Accepted

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

tmp = input().split()
hoge = list(map(lambda a: int(a), tmp))

numf=0
nums=0
for i in range(0,3):
	if hoge[i]==5:
		numf +=1
	if hoge[i]==7:
		nums +=1

if (numf == 2) and (nums==1):
	print("YES")
else:
	print("NO")

Submission status: Accepted

Solution code:
input = input().split()
count = 0
for num in input:
  if num == "7":
    count += 1
 
if count == 1:
  print("YES")
else:
  print("NO")

Submission status: Accepted

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

input_list = input().split()

cnt7 = 0
cnt5 = 0

for n in input_list:
    if int(n) == 7:
        cnt7 += 1
    elif int(n) == 5:
        cnt5 += 1
    else:
        continue
if cnt7 == 1 and cnt5 == 2:
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

cnt = 0
for i in A:
  if i != 7 and i !=5:
  	cnt = 5
  elif i == 7:
    cnt += 1

if cnt == 1:
  print('YES')
else:
  print('NO')

Submission status: Accepted

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

abc.sort()

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
a = ["5","5","7"]
b = list(str(input()).replace(" ",""))
b.sort()
print("YES") if a==b else print("NO")

Submission status: Accepted

Solution code:
a=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,b,c,d,e=A[0],A[1],A[2],0,0
if a==5:
    d+=1
if b==5:
    d+=1
if c==5:
    d+=1
if a==7:
    e+=1
if b==7:
    e+=1
if c==7:
    e+=1
if d==2 and e==1:
    print('YES')
else:
    print('NO')

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

Submission status: Accepted

Solution code:
#import sys
#input = sys.stdin.readline
def main():
    A = list( map( int, input().split()))
    C = [0]*11
    for a in A:
        C[a] += 1
    if C[5] == 2 and C[7] == 1:
        print("YES")
    else:
        print("NO")
if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
i = input()
if i == '5 5 7' or i == '5 7 5' or i == '7 5 5':
	print('YES')
else:
	print('NO')

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
num  = [int(n) for n in input().rstrip().split()]

if num.count(5) == 2 and num.count(7) == 1:
    print("YES")

else:
    print("NO")

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
from collections import defaultdict
from collections import deque
from heapq import heappush, heappop
import sys
import math
import bisect
import random
import itertools
sys.setrecursionlimit(10**5)
stdin = sys.stdin
bisect_left = bisect.bisect_left
bisect_right = bisect.bisect_right
def LI(): return list(map(int, stdin.readline().split()))
def LF(): return list(map(float, stdin.readline().split()))
def LI_(): return list(map(lambda x: int(x)-1, stdin.readline().split()))
def II(): return int(stdin.readline())
def IF(): return float(stdin.readline())
def LS(): return list(map(list, stdin.readline().split()))
def S(): return list(stdin.readline().rstrip())
def IR(n): return [II() for _ in range(n)]
def LIR(n): return [LI() for _ in range(n)]
def FR(n): return [IF() for _ in range(n)]
def LFR(n): return [LI() for _ in range(n)]
def LIR_(n): return [LI_() for _ in range(n)]
def SR(n): return [S() for _ in range(n)]
def LSR(n): return [LS() for _ in range(n)]
mod = 1000000007
inf = float('INF')

#A
def A():
    a = LI()
    a.sort()
    if a == [5, 5, 7]:
        print("YES")
    else:

        print("NO")
    return

#B
def B():
    return

#C
def C():
    return

#D
def D():
    return

#E
def E():
    return

#F
def F():
    return

#G
def G():
    return

#H
def H():
    return

#Solve
if __name__ == '__main__':
    A()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b, c=map(int, input().split())
l=[a,b,c]
for i in range(3):
    if l[i]==5:
        del l[i]
        break
s=len(l)
for i in range(s):
    if l[i]==5:
        del l[i]
        break
if l==[7]:
    print('YES')
else:
    print('NO')

Submission status: Accepted

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

cnt5 = 0
cnt7 = 0
for num in [a, b, c]:
    if num == 5:
        cnt5 += 1
    if num == 7:
        cnt7 += 1

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

Submission status: Accepted

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

print('NO')

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
def main():
    s = list(map(int, input().split()))
    fives = 0
    sevens = 0
    for item in s:
        if item == 5: fives += 1
        if item == 7: sevens += 1
    if fives == 2 and sevens == 1:
        print('YES')
    else:
        print('NO')

if __name__ == '__main__':
    main()

Submission status: Accepted

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

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

Submission status: Accepted

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

def solve():
    ABC = list(map(int, input().split()))
    n5 = 0
    n7 = 0
    for n in ABC:
        if n == 5:
            n5 += 1
        elif n == 7:
            n7 += 1
    
    if n5==2 and n7==1:
        print("YES")
    else:
        print("NO")


if __name__ == "__main__":
    solve()

Submission status: Accepted

Solution code:
f, s = 0, 0
for i in input().split():
    intI = int(i)
    if (intI == 5):
        f += 1
    elif (intI == 7):
        s += 1
    else:
        break
print('YES' if (f == 2 and s == 1) else 'NO')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def haiku(lst):
    w5 = 2
    w7 = 1

    for h in lst:
        if h == '5':
            w5 -= 1

            if w5 < 0:
                return False
        elif h == '7':
            w7 -= 1

            if w7 < 0:
                return False
        else:
            return False

    return True

lst = input().split()

print('YES' if haiku(lst) else 'NO')

Submission status: Accepted

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

f5 = 2
f7 = 1

for i in s:
    if(i == 5):
        f5 -= 1
    elif(i == 7):
        f7 -= 1
        
if (f5 == 0 and f7 == 0):
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

i5 = 0
i7 = 0

for i in a:
  if i==5:
    i5+=1
  if i==7:
    i7+=1

if i5==2 and i7==1:
  print("YES")
else:
  print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

i5 = 0
i7 = 0

for i in a:
    if i == 5:
        i5 += 1
    if i == 7:
        i7 += 1
if i5==2 and i7==1:
    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:
list = input().split()
list.sort()
if list == ["5", "5", "7"]:
    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:

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

count_7 = count_5 = 0
for num in S:
    if num == 5:
        count_5 += 1
    elif num == 7:
        count_7 += 1

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
syllables = list(map(int, input().split()))
cnt5 = 0
cnt7 = 0
for i in syllables:
    if i == 5:
        cnt5 += 1
    elif i == 7:
        cnt7 += 1
    else:
        print('NO')
if cnt5 == 2 and cnt7 == 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:
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 = input().split(" ")

count_5 = a.count("5")
count_7 = a.count("7")

ans = "NO"

if count_5 == 2:
  if count_7 == 1:
    ans = "YES"
    
print(ans)

Submission status: Accepted

Solution code:
listInput = list(map(int,input().split()))
count5=0
count7=0
for i in listInput:
    if i==5:
        count5+=1
    if i==7:
        count7+=1
    else:
        continue

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

Submission status: Accepted

Solution code:
a,b,c = map(int, input().split())
from collections import defaultdict
dic = defaultdict(lambda : 0)
for i in [a,b,c]:
    dic[i] += 1
if dic[5] == 2 and dic[7] == 1:
    print('YES')
else:
    print('NO')

Submission status: Accepted

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

flag = False
if a == 7 and b == 5 and c ==5:
    flag = True
if a == 5 and b == 7 and c ==5:
    flag = True
if a == 5 and b == 5 and c ==7:
    flag = True

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

Submission status: Accepted

Solution code:
print('YES' if eval(input().replace(' ','+'))==17 else 'NO')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

S = sum(L)
S2 = S - L[0]
S1 = S2 - L[1]

if S != 17:
    print('NO')
else:
    if S2==10 and S1==5:
        print('YES')
    elif S2==12 and (S1==5 or S1==7):
        print('YES')
    else:
        print('NO')

Submission status: Accepted

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

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

if __name__ == "__main__":

    main()

Submission status: Accepted

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

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

Submission status: Accepted

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


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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
A, B, C = map(int, input().split())
if A*B*C == 5*5*7 and A >= 5 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 in [5,7] and a in [5,7] and a in [5,7] and a+b+c ==17:
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def X(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"
  return "NO"
A,B,C = map(int, input().split())
print(X(A,B,C))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
nl = lambda: list(map(int, input().split()))
sl = lambda: input().split()
n = lambda: int(input())
s = lambda: input()

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
dc = {}
dc[a] = dc.get(a, 0)+1
dc[b] = dc.get(b, 0)+1
dc[c] = dc.get(c, 0)+1
if dc[5] is 2 and dc[7] is 1:
  print('YES')
else:
  print('NO')

Submission status: Accepted

Solution code:
# encoding:utf-8
import copy
import random
import bisect #bisect_left　これで二部探索の大小検索が行える
import fractions #最小公倍数などはこっち
import math
import sys

mod = 10**9+7
sys.setrecursionlimit(mod) # 再帰回数上限はでdefault1000

def LI(): return list(map(int, sys.stdin.readline().split()))
def LLI(): return [list(map(int, l.split())) for l in sys.stdin.readlines()]
def LI_(): return [int(x)-1 for x in sys.stdin.readline().split()]
def LF(): return [float(x) for x in sys.stdin.readline().split()]
def LS(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def F(): return float(sys.stdin.readline())

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

cnt_5 = 0
cnt_7 = 0
for s in haiku:
    if s == 5:
        cnt_5 += 1
    elif s == 7:
        cnt_7 += 1
if cnt_5 == 2 and cnt_7 == 1:
    print('YES')
else:
    print('NO')

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:
print('YES' if sorted(input().split()) == ['5', '5', '7'] else 'NO')

Submission status: Accepted

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

if x + y + z == 17:
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
haiku = input().split()
count_f = 0
count_s = 0
for l in haiku:
    if l == "5":
        count_f += 1
    elif l == "7":
        count_s += 1
if count_f == 2 and count_s == 1:
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
p=input().split()
for i in range(3):
    p[i]=int(p[i])
f,s=2,1
for i in range(3):
    if p[i]==5:
        f-=1
    elif p[i]==7:
        s-=1
if f==s==0:
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
i = list(map(int, input().split()))
countFive = i.count(5)
countSeven = i.count(7)

if countFive == 2 and countSeven == 1 :
    print("YES")
else :
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

ans = "NO"

if a == 2 and b == 1:
  ans = "YES"
print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
numbers = list(map(int,input().split()))
counter1 = 0
counter2 = 0
for i in numbers:
    if i == 5:
        counter1 += 1
    if i == 7:
        counter2 += 1

if counter1 == 2 and counter2 == 1:
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
def abc():
    l = ''.join(input().split())
    print('YES' if l.replace('5', '') == '7' else 'NO')


abc()

Submission status: Accepted

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

if __name__ =='__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# 吸い込んでソートして[5, 5, 7]になるものっていう昔書いたやつがクレバーだった（忘れてた）
# 今回はまっさきに浮かんだやつで....
ok = [[5, 5, 7], [5, 7, 5], [7, 5, 5]]
stdin = list(map(int, input().split()))
print("YES" if stdin in ok else "NO")

Submission status: Accepted

Solution code:
a = [int(i) for i in input().split()]
c,d = 0,0
for i in a:
  if i == 5:
    c+=1
  if i == 7:
    d+=1
if c ==2 and d == 1:
  print('YES')
else:
  print('NO')

Submission status: Accepted

Solution code:
a = 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: Accepted

Solution code:
def main():
    l = input().split(' ')
    if l.count('5') ==2 and l.count('7')==1:
        print('YES')

    else:
        print('NO')

if __name__ =='__main__':
    main()

Submission status: Accepted

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

a, b, c = sorted(map(int, input().split()))

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = list(map(int, input().split()))
x = s[0]*s[1]*s[2]
if x == 5*5*7:
    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:
arr = input().split()

cnt_5 = 0
cnt_7 = 0
for a in arr:
    if a == '5':
        cnt_5+=1
    elif a == '7':
        cnt_7+=1

if cnt_5 == 2 and cnt_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:
nums=map(int,input().split())
if sorted(nums) == [5,5,7]:
    print('YES')
else:
    print('NO')

Submission status: Accepted

Solution code:
A, B, C = [int(x) for x in input().split()]
print('YES') 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) else print('NO')