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

Solution (Python):
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")

Solution (Python):

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

Solution (Python):
t=input().split()
t.sort()
if t == ["5","5","7"]:
  print("YES")
else:
  print("NO")

Solution (Python):
line = input()
num = line.split(" ")

num_5 = num.count("5")
num_7 = num.count("7")

if num_5 == 2 and num_7 == 1:
    print("YES")
else:
    print("NO")

Solution (Python):
import sys
input = sys.stdin.readline

a, b, c = map(int, input().split())
match = [a, b, c]
cnt = 0

for i in range(3):
    if match[i] == 5:
        cnt += 2
    elif match[i] == 7:
        cnt += 1

if cnt == 5:
    ans = 'YES'
else:
    ans = 'NO'

print(ans)

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

Solution (Python):


nums=[int(i) for i in input().rstrip().split()]

cnt={}
for i in nums:
  cnt.setdefault(i,0)
  cnt[i] += 1

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

Solution (Python):
import sys, math

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

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

if __name__ == '__main__':
    main()

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

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

Solution (Python):
s = list(map(int, input().split()))

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

Solution (Python):
s = list(map(int, input().split()))

five = 0
seven = 0
for i in s:
    if i == 5:
        five += 1
    elif i == 7:
        seven += 1

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

Solution (Python):
def main():
  count = {5: 0, 7: 0}

  for v in map(int, input().split()):
      if v in count:
          count[v] += 1

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

Solution (Python):
i = list(map(int, input().split()))
li = [i[0], i[1], i[2]]
yn = "NO"
if li.count(5) == 2:
  if li.count(7) == 1:
    yn = "YES"
    
print(yn)

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

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


if __name__ == '__main__':
    main()

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

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

Solution (Python):
import sys
a = list(map(int,input().split()))
seven = a.count(7)
five = a.count(5)
if five==2 and seven==1:
    print("YES")
else:
    print("NO")

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

Solution (Python):
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 c == b == 5 and a== 7:
  print("YES")
else:
  print("NO")

Solution (Python):
A, B, C =(int(x) for x in input().split())

l = [int(A), int(B), int(C)]

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

Solution (Python):
list=input()
if list.count('5') == 2:
  if '7' in list:
    print('YES')
else:
  print('NO')

Solution (Python):
import sys
if __name__ == '__main__':
    a,b,c=[int(i) for i in input().split()]
    if a+b+c==17 and a*b*c%175==0:
        print("YES")
    else:
        print("NO")

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

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

Solution (Python):
a,b,c=input().split()
d=[a,b,c]

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

else:
    print("NO")

Solution (Python):
s = input()
num_5 = s.count('5')
num_7 = s.count('7')
if (num_5 == 2)*(num_7 == 1):
    print('YES')
else:
    print('NO')

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

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

Solution (Python):
import sys
readline = lambda:sys.stdin.readline().rstrip()
a,b,c = sorted(map(int, readline().split()))
ans = 'YES' if a==b==5 and c==7 else 'NO'
print(ans)

Solution (Python):
a, b, c = map(int, input().split())
l = [0 for i in range(10)]
l[a] += 1
l[b] += 1
l[c] += 1
if l[5] == 2 and l[7] == 1:
    print("YES")
else:
    print("NO")

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

Solution (Python):
x = input().split(' ')
count_5 = 2
count_7 = 1
for num in x:
    if num == '5':
        count_5 -= 1
    elif num == '7':
        count_7 -= 1

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

Solution (Python):
s  = input().split()
s.sort()
if s[0] == '5' and s[1] == '5' and s[2] == '7':
    print('YES')
else:
    print('NO')

Solution (Python):


a = [int(s) for s in input().split()]

b, c, d = sorted(a)

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

Solution (Python):
import collections

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

c = collections.Counter(a)

b = c.most_common()
if b[0][0] == 5 and b[0][1] == 2 and b[1][0] ==7:
  print('YES')
else:
  print('NO')

Solution (Python):



def main():

    in_data = input()

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

    return 0
  
  
if __name__ == '__main__':
    main()

Solution (Python):
input_line = list(map(int, input().split()))
input_line.sort()

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

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

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

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

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

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

Solution (Python):
s = list(map(int,input().split()))
count5 = 0
count7 = 0
for i in range(3):
    if s[i] == 5:
      count5 += 1
    if s[i] == 7:
      count7 +=1
if count7 == 1 and count5 == 2:
   print("YES")
else:
    print("NO")

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

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

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

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

Solution (Python):
a,b,c=(int(x) for x in input().split())
count5=0
count7=0

for i in a,b,c:
    if i==5:
        count5+=1
    elif i==7:
        count7+=1

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

Solution (Python):



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


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

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

Solution (Python):
array = input().split()
five_count, seven_count = (0, 0)
for i in range(3):
    if int(array[i]) == 5:
        five_count += 1
    elif int(array[i]) == 7:
        seven_count += 1
print('YES') if five_count == 2 and seven_count == 1 else print('NO')

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

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

Solution (Python):



box = input().rstrip().split()


F = 0
S = 0

for i in range(len(box)):
    if int(box[i]) == 5:
        F = F + 1
    elif int(box[i]) == 7:
        S = S + 1
    
if (F == 2 and S == 1):
    print("YES")
else:
    print("NO")

Solution (Python):
phrases = input().split()
phrases.sort(reverse=True)

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

Solution (Python):
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")

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

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

Solution (Python):
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')

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

Solution (Python):
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")

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

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

Solution (Python):

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

Solution (Python):
ABC = tuple(map(int, input().split())) 
if ABC.count(5) == 2:
    print('YES' if sum(ABC)==17 else 'NO') 
else:
    print('NO')

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

Solution (Python):
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")

Solution (Python):
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")

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

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

Solution (Python):
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")

Solution (Python):
A, B, C = map(int, input().split())
if A*B*C == 175 and A+B+C == 17:
  print("YES")
else: print("NO")

Solution (Python):
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")

Solution (Python):
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")

Solution (Python):
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")

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

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

Solution (Python):
n = [e for e in input().split()]
if n.count('5')==2 and n.count('7')==1:
    print('YES')
else:
    print('NO')

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

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

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

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

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

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

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

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

Solution (Python):
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")

Solution (Python):
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")

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

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

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

Solution (Python):
print('YES' if sum(map(int,input().split()))==17 else 'NO' )

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

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

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

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

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

Solution (Python):
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')

Solution (Python):
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")

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

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

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

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

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

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

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

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

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

Solution (Python):

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

list = [a, b, c]
list_seikai = [5, 5, 7]
list.sort()

if list == list_seikai :
    print("YES")
else :
    print("NO")

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

Solution (Python):
c = list(map(int, input().split()))

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

else:
    print('NO')

Solution (Python):
str = input().split()
if str.count("7") == 1 :
  print("YES") 
else: 
  print("NO")

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

Solution (Python):
A, B, C = sorted(map(int, input().split()))
print("YNEOS"[not(A==5 and B==5 and C==7)::2])

Solution (Python):
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")

Solution (Python):
a,b,c = input().split()
if (a+b+c).count('5') == 2 and (a+b+c).count('7') == 1:
  print('YES')
else:
  print('NO')

Solution (Python):








mod = int(1e9+7)

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

    @staticmethod
    def myRound(a,dig=0): 
        
        
        
        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)
    

    @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()

Solution (Python):

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

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

Solution (Python):
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")

Solution (Python):
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")

Solution (Python):
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")

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

Solution (Python):
b = input().split() 
c = [int(s) for s in 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")

Solution (Python):


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

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

Solution (Python):
"""
author : halo2halo
date : 4, Feb, 2020
"""

import sys





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

Solution (Python):



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

Solution (Python):
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")

Solution (Python):
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')

Solution (Python):
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")

Solution (Python):
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")

Solution (Python):
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")

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

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

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

Solution (Python):
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")

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

Solution (Python):




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


if __name__ == "__main__":
    main()

Solution (Python):




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

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

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

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

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

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

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

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

Solution (Python):
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")

Solution (Python):
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")

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

Solution (Python):
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")

Solution (Python):
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')

Solution (Python):
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")

Solution (Python):
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")

Solution (Python):
def f(a,b,c):
	return (a==5 and b==7 and c==5)

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

Solution (Python):
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")

Solution (Python):


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

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

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

Solution (Python):
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')

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

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

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

sum = A + B + C

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

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

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

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

Solution (Python):
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')

Solution (Python):
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")

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

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

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

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

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

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

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

Solution (Python):
nums = list(input().split())

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

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

Solution (Python):
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')

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

Solution (Python):
d=list(map(int,input().split()))
if d.count(5)==2 and 7 in d:
    print('YES')
else:
    print('NO')

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

Solution (Python):

import sys
[a,b,c] = list(map(int,input().split()))


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

Solution (Python):
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")

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

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

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

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

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

Solution (Python):

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

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

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

Solution (Python):

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

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

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

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

a.sort()

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

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

Solution (Python):
data = input()

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

Solution (Python):
def main():
    from sys import stdin, setrecursionlimit
    
    
    r = stdin.readline()[:-1]
    
    
    
    a = r.split()
    
    
    
    
    
    
    
    a.sort()
    if "".join(a) == '557':
        print('YES')
    else:
        print('NO')


if __name__ == '__main__':
    main()

Solution (Python):
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")

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

Solution (Python):
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")

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

Solution (Python):
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")

Solution (Python):
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)