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:
phrases = input().split()
phrases.sort(reverse=True)

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

Submission status: Accepted

Solution code:
A,B,C=map(int,input().split())
x=dict()
x[5]=0
x[7]=0

if A==5:
    x[5]+=1
elif A==7:
    x[7]+=1
if B==5:
    x[5]+=1
elif B==7:
    x[7]+=1
if C==5:
    x[5]+=1
elif C==7:
    x[7]+=1
flag=False
if x[5]==2:
    if x[7]==1:
        flag=True

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
ABC = tuple(map(int, input().split())) #A,B,Cを受け取る
if ABC.count(5) == 2:
    print('YES' if sum(ABC)==17 else 'NO') 
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=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:
nums = list(map(int, input().split()))
fives = nums.count(5)
sevens = nums.count(7)
print("YES") if (fives == 2 and sevens == 1) else print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

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*B*C == 175 and A+B+C == 17:
  print("YES")
else: print("NO")

Submission status: Accepted

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

lis=[a,b,c]
lis.sort()
if lis[0] == 5 and lis[1]==5 and lis[2] == 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:
A,B,C=map(int,input().split())
l=[A,B,C]
l.sort()

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

Submission status: Accepted

Solution code:
n = [e for e in input().split()]
if n.count('5')==2 and n.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):
    print('YES')
else:
    print('NO')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
li = list(map(int, input().rstrip().split()))
five = 0
seven = 0
for x in li:
    if x == 5:
        five += 1
    elif x == 7:
        seven += 1
if five == 2 and seven == 1:
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

flag = bool

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

if flag == True:
    print('YES')
else:
    print('NO')

Submission status: Accepted

Solution code:
A, B, C = list(map(str, input().split()))
p = A + B + C
p1 = "5"
p2 = "7"
if p.count(p1) == 2 and p.count(p2) == 1:
    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:
N = sorted(list(map(int, input().split())))
if (N == [5, 5, 7]):
  print('YES')
else:
  print('NO')

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# 入力 : A B C
a, b, c = map(int, input().split())
# 文節の並びを五七五にすることができるなら YES 、そうでないなら NO を出力せよ。
list = [a, b, c]
list_seikai = [5, 5, 7]
list.sort()

if list == list_seikai :
    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:
c = list(map(int, input().split()))

if c.count(7)==1 and c.count(5)==2:
    print('YES')

else:
    print('NO')

Submission status: Accepted

Solution code:
str = input().split()
if str.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, B, C = sorted(map(int, input().split()))
print("YNEOS"[not(A==5 and B==5 and C==7)::2])

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

Submission status: Accepted

Solution code:
# import math
# import decimal
# import queue
# import bisect
# import heapq
# import time
# import itertools

mod = int(1e9+7)

class Library():
    @staticmethod
    def Swap(a,b):
        return [b,a]

    @staticmethod
    def myRound(a,dig=0): # 四捨五入
        # dig => 桁数
        # dig = 1 => 10の位
        # dig = -1 => 小数第一位
        p = 10 ** dig
        return (a * p * 2 + 1) // 2 / p

    @staticmethod
    def Roundup(a): # 切り上げ
        if a < 0:
            return int(a)
        else:
            return int(a + 0.9)
    # 整数の切り上げ => (a + b - 1) // b

    @staticmethod
    def Gcd(a,b): #最大公約数
        if (a<b):
            a,b = Library.Swap(a,b)
        if (b==0):
            return a
        else:
            return Library.Gcd(b,a%b)

    @staticmethod
    def Lcm(a,b): #最小公倍数
        return a//Library.Gcd(a,b)*b

    @staticmethod
    def Divisors(a): # 約数列挙
        divisors = []
        for i in range(1,int(a**0.5)+1):
            if a%i==0:
                divisors.append(i)
                if i!=a//i:
                    divisors.append(a//i)
        divisors.sort()
        return divisors

class Prime():
    # コンストラクタ
    # エラストテネスの篩
    def __init__(self,num):
        self.num = num
        self.sieve = [0] * (self.num + 1)
        self.sieve[0] = -1
        self.sieve[1] = -1
        for i in range(2,self.num + 1):
            if not self.sieve[i]:
                self.sieve[i] = i
                for j in range(i * i,self.num + 1,i):
                    if self.sieve[j]:
                        self.sieve[j] = i
    
    # 素数判定
    def isPrime(self,num = None):
        if num is None:
            num = self.num
        if self.sieve[num] == num:
            return True
        else:
            return False
    
    # 素数列挙
    def PrimeNum(self,num = None):
        if num is None:
            num = self.num
        prime = []
        for i in range(2,num):
            if self.sieve[i] == i:
                prime.append(i)
        return prime
    
    # 素因数分解
    def PrimeFact(self,num = None):
        if num is None:
            num = self.num
        fact = []
        while self.sieve[num] != num:
            fact.append(self.sieve[num])
            num //= self.sieve[num]
        fact.append(num)
        return fact

def main():
    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')
    return

if __name__=='__main__':
    main()

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
a = list(map(int,input().split()))
if sum(a)==17:
    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()))
n5=0
n7=0
for i in range(len(x)):
    if(x[i]==5):n5=n5+1
    if(x[i]==7):n7=n7+1
if(n5==2 and n7==1):print("YES")
else:print("NO")

Submission status: Accepted

Solution code:
A=list(map(int,input().split()))
p=17
for i in A:
  if i==5 or i==7:
    p=p-i
if p==0:
  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:
print('YES' if sorted(list(map(int, input().split())))==[5,5,7] else 'NO')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8

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

Submission status: Accepted

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

Submission status: Accepted

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

import sys

# import itertools

# import numpy as np

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

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

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

Submission status: Accepted

Solution code:
# A - 和風いろはちゃんイージー / Iroha and Haiku (ABC Edition)
# https://atcoder.jp/contests/abc042/tasks/abc042_a

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

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

if len(nums) == 0:
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

if a==5 and b==7 and c==5:
  print("YES")
elif a==7 and b==5 and c==5:
  print("YES")
elif a==5 and b==5 and c==7:
  print("YES")
else:
  print("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 = list(map(int,input().split()))
cnt_5 = 0
cnt_7 = 0
for i in range(3):
	if A[i] == 5:
		cnt_5+=1
	if A[i] == 7:
		cnt_7 +=1
if cnt_5 == 2 and cnt_7 == 1:
	print("YES")
else:
	print("NO")

Submission status: Accepted

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

answer = [5,5,7]
my=[]
for i in range(3):
  my.append(int(a[i]))

my.sort()


if answer == my:
  print("YES")
else:
  print("NO")

Submission status: Accepted

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

if fiveCount == 2 and sevenCount == 1:
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
abc_len = [a, b, c]
if abc_len.count(5) == 2 and abc_len.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:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-


def main():
    ABC = list(map(int, input().split()))
    ABC.sort()
    print('YES' if [5, 5, 7] == ABC else 'NO')


if __name__ == "__main__":
    main()

Submission status: Accepted

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


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


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a=input().split(" ")
a=list(map(int,a))
b=a[0]*a[0]+a[1]*a[1]+a[2]*a[2]
if b==99:
    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:
a = list(map(int, input().split()))
fives = 0
sevens = 0

for i in a:
    if(i == 5):
        fives += 1
    elif(i == 7):
        sevens += 1

if((fives == 2) and (sevens == 1)):
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

b = [0]*10

for i in arr:
    b[i-1] += 1

if (b[4]==2 and b[6]==1):
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
def f(a,b,c):
	return (a==5 and b==7 and c==5)
# your code goes here
a,b,c = map(int,input().split())
if f(a,b,c) or f(a,c,b) or f(b,a,c) or f(b,c,a) or f(c,a,b) or f(c,b,a):
	print("YES")
else:
	print("NO")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# AtCoder Beginner Contest 042
# A - 和風いろはちゃんイージー / Iroha and Haiku (ABC Edition)
l = input().split()
count_5 = 0
count_7 = 0
for i in range(3):
    if int(l[i]) == 5:
        count_5 = count_5 + 1
    elif int(l[i]) == 7:
        count_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()))
A.sort()

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

Submission status: Accepted

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

if max(a) == 7 and min(a)==5 and sum(a)==17:
    print('YES')
else:
    print('NO')

Submission status: Accepted

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

sum = A + B + C

if sum == 17:
    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:
X=list(map(int,input().split()))
X.sort()
if X==[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 and max(A, B, C) == 7 and min(A, B, C) == 5:
    print('YES')
else:
    print('NO')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:
S = list(map(str, 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:
    if (a == 5 or a == 7) and (b == 5 or b ==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:
d=list(map(int,input().split()))
if d.count(5)==2 and 7 in d:
    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:
#2033~
import sys
[a,b,c] = list(map(int,input().split()))

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
lis_ = list(map(int, input().split()))
print('YES' if all([i == n for i, n in zip(sorted(lis_), [5, 5, 7])]) else 'NO')

Submission status: Accepted

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

Submission status: Accepted

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

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

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

a.sort()

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

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

if data == "7 5 5" or \
   data == "5 7 5" or \
   data == "5 5 7":
	print("YES")
else:
	print("NO")

Submission status: Accepted

Solution code:
def main():
    from sys import stdin, setrecursionlimit
    #setrecursionlimit(10**9)
    #n = int(stdin.readline()[:-1])   
    r = stdin.readline()[:-1]
    #r = [stdin.readline() for i in range(n)]
    #t = [int(stdin.readline()) for i in range(n)]
    #n = int(r)
    a = r.split()
    #a,b,c = r.split()
    #a = list(map(int, r.split()))
    #a,b,c,d = map(int, r.split())
    #a = [int(s[i]) for i in range(1, n+1)]
    #a = [list(map(int, r.split())) for i in range(1,n+1)]
    #res = 0
    
    a.sort()
    if "".join(a) == '557':
        print('YES')
    else:
        print('NO')


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:
lo = list(map(int,input().split()))
li =[[5,7,5],[5,5,7],[7,5,5]]

for i in li:
    if lo == i:
        result = "YES"  
        break
    else:
        result = "NO"
print(result)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input().split()
S.sort()
print('YES' if ''.join(S) == '557' 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 + B + C == 17:
  if A + B or A + C or B + C == 10:
    print("YES")
  else:
    print("NO")
else:
  print("NO")

Submission status: Accepted

Solution code:
A= list(map(int, input().split()))
flg = True
cnt = 0
for a in A:
  if a != 7 and a != 5:
    flg = False
  if a == 5:
    cnt += 1
if cnt != 2:
  flg = False
if flg is True:
  print('YES')
else:
  print('NO')

Submission status: Accepted

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

result = "YES" if ((arr.count('5')) == 2 and (arr.count('7')) == 1) else "NO"

print(result)

Submission status: Accepted

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

Submission status: 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:
x=list(map(int,input().split()))
x.sort()
print("YES" if x==[5,5,7] else "NO")

Submission status: Accepted

Solution code:
import sys

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

cnt5, cnt7 = 0, 0

# 5文字と7文字がいくつあったか
if a == 5:
    cnt5 += 1
if a == 7:
    cnt7 += 1
if b == 5:
    cnt5 += 1
if b == 7:
    cnt7 += 1
if c == 5:
    cnt5 += 1
if c == 7:
    cnt7 += 1

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

Submission status: Accepted

Solution code:
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:
def haiku(sentence_length_list):

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

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
args = input().split()
five = 0
seven = 0
for arg in args:
    if arg == "5":
        five = five + 1
    else:
        seven = 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:
if tuple(sorted(input().split()))==("5","5","7"):
  print("YES")
else:
  print("NO")

Submission status: Accepted

Solution code:
num=list(map(int,input().split()))
five,seven=0,0
for i in range(3):
    if num[i]==5:
        five+=1
    else:
        seven+=1
print("YES" if(five==2 and seven==1) else "NO")

Submission status: Accepted

Solution code:
s,t,u=map(int,input().split())
if s+t+u==17:
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

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

    print(ans)

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
from collections import defaultdict
d = defaultdict(int)
A, B, C = map(int, input().split())
d[A] += 1
d[B] += 1
d[C] += 1
if d[5] == 2 and d[7] == 1:
    print('YES')
else:
    print('NO')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

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

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

Submission status: Accepted

Solution code:
inputs = sorted([int(i)for i in input().split(' ')])
true_num = sum([1 for i, j in zip(inputs, [5, 5, 7]) if i==j])

if true_num == 3:
    print('YES')
else:
    print('NO')

Submission status: Accepted

Solution code:
arr = input().split()
arr = list(map(int,arr))
c1 = 0
c2 = 0
for i in range(len(arr)):
    if arr[i] == 5:
        c1 += 1
    elif arr[i] == 7:
        c2 += 1

if c1 == 2 and c2 == 1:
    print('YES')
else:
    print('NO')