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 = (int(x) for x in input().split())

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

Submission status: Accepted

Solution code:
A, B, C = list(map(int, input().split()))
arr = []
ideal = [5,5,7]

arr.append(A)
arr.append(B)
arr.append(C)

arr = sorted(arr)

if arr == ideal:
  print("YES")
else:
  print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

for line in sys.stdin :

  list = line.split(" ")
  
  for n in range(len(list)) : 
    list[n] = int(list[n])
   
  
list.sort()

if (list[0] == 5 and list[1] == 5 and list[2] == 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:
#!/usr/bin/env python3
import sys

YES = "YES"  # type: str
NO = "NO"  # type: str


def solve(A: int, B: int, C: int):
    five_a_seven = {5, 7}
    abc = {A, B, C}
    if(five_a_seven & abc == five_a_seven and A+B+C == 17):
        print(YES)
        return YES
    else:
        print(NO)
        return NO


# Generated by 1.1.7.1 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    A = int(next(tokens))  # type: int
    B = int(next(tokens))  # type: int
    C = int(next(tokens))  # type: int
    solve(A, B, C)


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A,B,C=map(int,input().split())
x=[A,B,C]
y=sorted(x)

if y[0]==5 and y[1]==5 and y[2]==7:
  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 or 7) and (B == 5 or 7) and (C == 5 or 7):
    print('YES')
  else:
    print('NO')
else:
  print('NO')

Submission status: Accepted

Solution code:
import collections
s= input().split()
li = collections.Counter(s)
if (li["5"] ==2) &(li["7"] ==1):
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

L = list(map(int, input().split()))
L.sort()

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

Submission status: Accepted

Solution code:
numbers=input()

numbers_list=numbers.split(' ')

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=list(map(int,input().split()))
frag="YES"
if max(s)!=7:
  frag="NO"
elif min(s)!=5:
  frag="NO"
elif s.count(5)!=2:
  frag="NO"
print(frag)

Submission status: Accepted

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

if N.count(7) == 1 and N.count(5) ==2:
  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:
a,b,c =map(str,input().split())
d=a+b+c
e=d.count("5")
f=d.count("7")
if(e==2 and f==1):
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
class A:

    def solve(self):
        [a, b, c] = sorted([int(x) for x in input().split(" ")])
        if a == 5 and b == 5 and c == 7:
            print("YES")
        else:
            print("NO")

A().solve()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A,B,C= input().split()
Sum = int(A) + int(B) + int(C)
if Sum == 17:
    print('YES')
else:
    print('NO')

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
a = list(map(int, input().split()))
sorted_list = sorted(a)
if sorted_list == [5,5,7]:
  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:
from sys import stdin
l = stdin.readline().rstrip().split()

cnt5 = cnt7 = 0

for ln in range(3):
	if l[ln] == '5' : cnt5 += 1
	if l[ln] == '7' : cnt7 += 1

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

Submission status: Accepted

Solution code:
num=input()
moji=num.split(" ")

if int(moji[0])==7 or int(moji[0])==5:
    pass
else:
    print("NO")

if int(moji[1])==7 or int(moji[1])==5:
	if int(moji[0])+int(moji[1])+int(moji[2])==17:
		print("YES")
	else:
		print("NO")
else:
	print("NO")

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
c5 = (a==5) + (b==5) + (c==5)
c7 = (a==7) + (b==7) + (c==7)
if c5 == 2 and c7 == 1:
    print('YES')
else:
    print('NO')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
B =  list(map(int, input().split()))
counter = 0
five_seven_five = [5,7,5]
for i in B:
    if i in five_seven_five:
        counter += 1
        five_seven_five.remove(i)
    else:
        print('NO')
if counter ==3:
    print('YES')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#空白区切りで複数の値をリストとして入力
input_list = list(map(int,input().split()))
#input_listの値を昇順に並び替え
sort_list = sorted(input_list)

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

Submission status: Accepted

Solution code:
print("YES" if input() in ("5 5 7", "5 7 5", "7 5 5") else "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, B, C = map(int, input().split())

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
s = input()
s = s.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 = input().split()
d = abc[0]
e = abc[1]
f = abc[2]
g = d + e + f
g = int(g)
a = 575
b = 557
c = 755

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

Submission status: Accepted

Solution code:
f=2
s=1
li = map(int,input().split())
for i in li:
  if i == 5:
    f-=1
  if i == 7:
    s-=1
if f == 0 and s == 0:
  print("YES")
else:
  print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys
import math
 
sys.setrecursionlimit(10 ** 8)
input = sys.stdin.readline
 
def main():
    s = list(map(int,input().split()))
    if sum(s) == 17:
      print("YES")
    else:
      print("NO")
 
if __name__ == '__main__':
    main()

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:
user_input = list(map(int, input().split()))
five = 0
seven = 0
for i in range(3):
    if user_input[i] == 5:
        five += 1
    elif user_input[i] == 7:
        seven += 1

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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


def main():
    input_list = input().split()

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


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
input_575 = list(map(int, input().split()))
li_575 = [5, 7, 5]
for i in input_575:
    if i in li_575:
        li_575.pop(li_575.index(i))
if len(li_575) == 0:
    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:
list = list(map(int,input().split()))

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

Submission status: Accepted

Solution code:
abc = list(map(int, input().split()))
abc.sort()
if (abc[0]==5) and (abc[1]==5) and (abc[2]==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:
num = list(map(int, input().split()))
result = 'YES'
try:
    num.remove(5)
    num.remove(7)
    num.remove(5)
except:
    pass
    result = 'NO'

print(result)

Submission status: Accepted

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

Submission status: Accepted

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

five = 0
seven = 0

for i in l:
  if i ==5:
    five += 1
  elif i ==7:
    seven += 1
if five ==2 and seven ==1:
  print("YES")
else:
  print("NO")

Submission status: Accepted

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

five = 0
seven = 0

for i in l:
  if i == 5:
    five += 1
  elif i == 7:
    seven += 1
if five ==2 and seven ==1:
  print("YES")
else:
  print("NO")

Submission status: Accepted

Solution code:
from collections import Counter
ns = Counter([int(i) for i in input().split()])
if ns[5] == 2 and ns[7] == 1:
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input().split()
S = [int(x) for x in S]
N = S.count(5)
M = S.count(7)
if N==2 and M == 1:
  print("YES\n")
else:
  print("NO\n")

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())
x = [A, B, C]
print("YES" if x.count(5) == 2 and x.count(7) == 1 else "NO")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import itertools

str_list = list(input().split())
a = list(itertools.permutations(str_list, 3))
tanka_list = ('5', '7', '5')
for s in a:
    if tanka_list == s:
        print('YES')
        exit()
print('NO')

Submission status: Accepted

Solution code:
from functools import reduce
from operator import mul

s = reduce(mul, map(int, input().split(' ')))
print('YES' if s == 175 else 'NO')

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = []
a = input().split(' ')

if '5' in a:
    a.remove('5')
    if '7' in a:
        a.remove('7')
        if '5' in a:
                print('YES')
        else:
            print('NO')
    else:
        print('NO')
else:
    print('NO')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
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:
# Vicfred
# https://atcoder.jp/contests/abc042/tasks/abc042_a
# implementation, sorting
ins = list(map(int, input().split()))
ins.sort()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
list1 = input().split()
ans = int(list1[0]) * int(list1[1]) * int(list1[2])
 
if ans == 5*5*7:
  print('YES')
else:
  print('NO')

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import sys
sys.setrecursionlimit(10**9)
INF=10**18
MOD=10**9+7
input=lambda: sys.stdin.readline().rstrip()
YesNo=lambda b: bool([print('Yes')] if b else print('No'))
YESNO=lambda b: bool([print('YES')] if b else print('NO'))
int1=lambda x:int(x)-1

def main():
    l=list(map(int,input().split()))
    l.sort()
    YESNO(l[0]==l[1]==5 and l[2]==7)

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = list(map(int, input().split()))
tar = [5,7,5]
for a in s:
    for b in tar:
        if a == b:
            tar.remove(b)
            break
if tar == []:
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

five_count=ABC.count("5")
seven_count=ABC.count("7")

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

Submission status: Accepted

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

c5 = 0
c7 = 0
for x in abc:
    if x == 5:
        c5 += 1
    if x == 7:
        c7 += 1

if c5 == 2 and c7 == 1:
    print('YES')
else:
    print('NO')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
nums = [int(e) for e in input().split()]

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

Submission status: Accepted

Solution code:
A,B,C = map(int, input().split())
ABC = [A,B,C]
# print(sorted(ABC))
if sorted(ABC) == [5,5,7]:
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

if l.count('5') == 2 and l.count('7') == 1:
    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:
import sys
sys.setrecursionlimit(10**6)
input = lambda: sys.stdin.readline().rstrip()

# N = list(map(int,input().split()))
N = list(map(int,input().split()))
N.sort()
if sum(N)==17 and int(N[0]) == int(N[1]) == 5:
    print('YES')
else:
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
if(a==5):
    if(b==7 and c==5):
        print("YES")
    elif(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:
abc = [i for i in map(int, input().split())]
if abc.count(5) == 2 and abc.count(7) == 1:
    print('YES')
else:
    print('NO')

Submission status: Accepted

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

Submission status: Accepted

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

import sys
# import math
# from string import ascii_lowercase, ascii_upper_case, ascii_letters, digits, hexdigits
# import re                                    # re.compile(pattern) => ptn obj; p.search(s), p.match(s), p.finditer(s) => match obj; p.sub(after, s)
# from operator import itemgetter              # itemgetter(1), itemgetter('key')
# from collections import deque                # deque class. deque(L): dq.append(x), dq.appendleft(x), dq.pop(), dq.popleft(), dq.rotate()
# from collections import defaultdict          # subclass of dict. defaultdict(facroty)
# from collections import Counter              # subclass of dict. Counter(iter): c.elements(), c.most_common(n), c.subtract(iter)
# from heapq import heapify, heappush, heappop # built-in list. heapify(L) changes list in-place to min-heap in O(n), heappush(heapL, x) and heappop(heapL) in O(lgn).
# from heapq import nlargest, nsmallest        # nlargest(n, iter[, key]) returns k-largest-list in O(n+klgn).
# from itertools import count, cycle, repeat   # count(start[,step]), cycle(iter), repeat(elm[,n])
# from itertools import groupby                # [(k, list(g)) for k, g in groupby('000112')] returns [('0',['0','0','0']), ('1',['1','1']), ('2',['2'])]
# from itertools import starmap                # starmap(pow, [[2,5], [3,2]]) returns [32, 9]
# from itertools import product, permutations  # product(iter, repeat=n), permutations(iter[,r])
# from itertools import combinations, combinations_with_replacement
# from itertools import accumulate             # accumulate(iter[, f])
# from functools import reduce                 # reduce(f, iter[, init])
# from functools import lru_cache              # @lrucache ...arguments of functions should be able to be keys of dict (e.g. list is not allowed)
# from bisect import bisect_left, bisect_right # bisect_left(a, x, lo=0, hi=len(a)) returns i such that all(val<x for val in a[lo:i]) and all(val>-=x for val in a[i:hi]).
# from copy import deepcopy                    # to copy multi-dimentional matrix without reference
# from fractions import gcd                    # for Python 3.4 (previous contest @AtCoder)


def main():
    mod = 1000000007                # 10^9+7
    inf = float('inf')              # sys.float_info.max = 1.79...e+308
    # inf = 2 ** 64 - 1               # (for fast JIT compile in PyPy) 1.84...e+19
    sys.setrecursionlimit(10**6)    # 1000 -> 1000000
    def input(): return sys.stdin.readline().rstrip()
    def ii():    return int(input())
    def mi():    return map(int, input().split())
    def mi_0():  return map(lambda x: int(x)-1, input().split())
    def lmi():   return list(map(int, input().split()))
    def lmi_0(): return list(map(lambda x: int(x)-1, input().split()))
    def li():    return list(input())
    
    
    L = lmi()
    print('YES') if L.count(5) == 2 and L.count(7) == 1 else print('NO')


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
ABC = list(map(int, input().split()))
cnt_5 = 0
cnt_7 = 0
for e in ABC:
  if e == 5: cnt_5 += 1
  if e == 7: cnt_7 += 1
 
if cnt_5 == 2 and cnt_7 == 1:
  print("YES")
else:
  print("NO")

Submission status: Accepted

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

for i in range(3):
    c=c+a[i]
    if a[i]==5:b=b+1

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

Submission status: Accepted

Solution code:
A = [int(x) for x in input().split()]
C5 =0
C7 =0
for i in range(3):
    if A[i] == 5:
        C5 += 1
    if A[i] == 7:
        C7 += 1

if C5 == 2 and C7 ==1:
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

count5=0
count7=0

for A in As:
    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())
d = [a, b, c]
if d.count(5) == 2 and d.count(7) == 1:
    print("YES")
    
else:
    print("NO")

Submission status: Accepted

Solution code:
def main():
 num = list(map(int,input().split()))
 fiven=0
 sevenn=0
 for i in range(0,3):
  if num[i]==5 :
   fiven+=1
  elif num[i]==7 :
   sevenn+=1
 if fiven==2 and sevenn==1 :
   print('YES')
 else:
   print('NO')
 
main()

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