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

if 5 in a:
  if 7 in a:
    if sum(a) == 17:
      print("YES")
      exit()

print("NO")

Submission status: Accepted

Solution code:
import sys

input = sys.stdin.readline


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

    cnt_5 = 0
    for i in [A, B, C]:
        if i == 5:
            cnt_5 += 1

    cnt_7 = 0
    for i in [A, B, C]:
        if i == 7:
            cnt_7 += 1

    if cnt_5 == 2 and cnt_7 == 1:
        print("YES")
    else:
        print("NO")


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
n = list(map(int, input().split()))
n.sort()
ans = ""
for i in range(3):
  ans += str(n[i])
if ans == "557":
  print("YES")
else:
  print("NO")

Submission status: Accepted

Solution code:
a = sorted(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())
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 = 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())
l=[a,b,c]

if 2==l.count(5):
    if 1==l.count(7):
        print('YES')
        exit()

print('NO')

Submission status: Accepted

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

count5 = len([x for x in [a,b,c] if x==5])
count7 = len([x for x in [a,b,c] if x==7])

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

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

Solution code:
import sys, re, os
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians, acos, atan, asin, log, log10
from itertools import permutations, combinations, product, accumulate
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from fractions import gcd
def debug(*args):
    if debugmode:
        print(*args)
def input(): return sys.stdin.readline().strip()
def STR(): return input()
def INT(): return int(input())
def FLOAT(): return float(input())
def MAP(): return map(int, input().split())
def S_MAP(): return map(str, input().split())
def LIST(): return list(map(int, input().split()))
def S_LIST(): return list(map(str, input().split()))
def lcm(a, b): return a * b // gcd(a, b)
sys.setrecursionlimit(10 ** 9)
inf = sys.maxsize
mod = 10 ** 9 + 7
dx = [0, 0, 1, -1, 1, -1, -1, 1]
dy = [1, -1, 0, 0, 1, -1, 1, -1]
debugmode = False

arr = LIST()
arr.sort()
if arr == [5, 5, 7]:
    print('YES')
else:
    print('NO')

Submission status: Accepted

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

Submission status: Accepted

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

ans = "NO"

if a*b*c % 175 == 0:
  ans = "YES"

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8-*-
a = []
a = list(map(int,input().split()))
if (a[0] + a[1] + a[2] == 17) and (7 in a) and (5 in a):   
  print("YES")
else:
  print("NO")

Submission status: Accepted

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

five=a.count(5)
seven=a.count(7)

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

lst = [0] * 10

lst[a - 1] += 1
lst[b - 1] += 1
lst[c - 1] += 1

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

Submission status: Accepted

Solution code:
def solve(lst):
  count_5 = 2
  count_7 = 1
  for i in lst:
    if i == 5:
      count_5 -= 1
    elif i == 7:
      count_7 -= 1
    else:
      return False
  return count_5 == 0 and count_7 == 0

if __name__ == "__main__":
  l = list(map(int,input().split()))
  if solve(l):
    print('YES')
  else:
    print('NO')

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
ABC = [int(x) for x in input().split()]
S = sorted(ABC)

if S[0] == 5 and  S[1] == 5 and  S[2] == 7:
    print('YES')
else:
    print('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:
li = input().split()
if li.count('7') == 1 and li.count("5") == 2:
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
li = input().split()
if ('7' in li) == True:
    if ('5' in li) == True:
        if li[0] == '5':
            if li[1] == '5' or li[2] == '5':
                print("YES")
            else:
                print("NO")
        elif li[1] == '5' and li[2] == '5':
            print("YES")
        else:
            print("NO")
    else:
        print("NO")
else:
    print("NO")

Submission status: Accepted

Solution code:

def main():
    t = input().split()
    if t.count('5') == 2:
        if t.count('7'):
            print('YES')
            exit()
    print('NO')




if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b,c = map(int, input().split())
total = a + b + c
if total == 17: 
    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:
s=list(input().split())
s.sort()
d=int(s[0])*100+int(s[1])*10+int(s[2])
d=d-557
if d==0:
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:
line = input().split()
a = 0
for i in line:
	a += int(i)
if a == 17 and ((line[0] == "5" and line[1] == "5") or (line[0] == "5" and line[2] == "5") or (line[1] == "5" and line[2] =="5" )):
	print("YES")
else:
  print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

abc.sort()

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

Submission status: Accepted

Solution code:
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:
lis = input().split()
if lis.count("5")==2 and lis.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 B == 5 and C == 5 and A == 7:
	print("YES")
elif C == 5 and A == 5 and B == 7:
	print("YES")
else:
	print("NO")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import sys
import math
import os
import itertools
import string
import heapq
import _collections
from collections import Counter
from collections import defaultdict
from functools import lru_cache
import bisect
import re
import queue
from decimal import *


class Scanner():
    @staticmethod
    def int():
        return int(sys.stdin.readline().rstrip())

    @staticmethod
    def string():
        return sys.stdin.readline().rstrip()

    @staticmethod
    def map_int():
        return [int(x) for x in Scanner.string().split()]

    @staticmethod
    def string_list(n):
        return [input() for i in range(n)]

    @staticmethod
    def int_list_list(n):
        return [Scanner.map_int() for i in range(n)]

    @staticmethod
    def int_cols_list(n):
        return [int(input()) for i in range(n)]


class Math():
    @staticmethod
    def gcd(a, b):
        if b == 0:
            return a
        return Math.gcd(b, a % b)

    @staticmethod
    def lcm(a, b):
        return (a * b) // Math.gcd(a, b)

    @staticmethod
    def divisor(n):
        res = []
        i = 1
        for i in range(1, int(n ** 0.5) + 1):
            if n % i == 0:
                res.append(i)
                if i != n // i:
                    res.append(n // i)
        return res

    @staticmethod
    def round_up(a, b):
        return -(-a // b)

    @staticmethod
    def is_prime(n):
        if n < 2:
            return False
        if n == 2:
            return True
        if n % 2 == 0:
            return False
        d = int(n ** 0.5) + 1
        for i in range(3, d + 1, 2):
            if n % i == 0:
                return False
        return True


def pop_count(x):
    x = x - ((x >> 1) & 0x5555555555555555)
    x = (x & 0x3333333333333333) + ((x >> 2) & 0x3333333333333333)
    x = (x + (x >> 4)) & 0x0f0f0f0f0f0f0f0f
    x = x + (x >> 8)
    x = x + (x >> 16)
    x = x + (x >> 32)
    return x & 0x0000007f


MOD = int(1e09) + 7
INF = int(1e15)


def main():
    # sys.stdin = open("sample.txt")
    A = Scanner.map_int()
    d = defaultdict(int)
    for a in A:
        d[a] += 1
    print('YNEOS'[not (d[5] == 2 and d[7] == 1)::2])


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A = list(input().split())
B = [int(i) for i in A]
print('YES' if sum(B) == 17 and '5' in A and '7' in A else 'NO')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b,c = input().split()
List = [a,b,c]
if List.count("5") == 2 and List.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 and (5 in [a,b,c] and 7 in [a,b,c]):
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
abc = list(input())

if abc.count('5') == 2 and abc.count('7') == 1:
  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:
import sys

*a, = map(int, sys.stdin.readline().split())

def main():
    a.sort()
    ans = 'YES' if a[0] == a[1] == 5 and a[2] == 7 else 'NO'
    print(ans)

if __name__ ==  '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# ABC 042: A – 和風いろはちゃんイージー / Iroha and Haiku (ABC Edition)
nums = [int(s) for s in input().split(" ")]
print("YES" if nums.count(5) == 2 and nums.count(7) == 1 else "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:
a=list(map(int,input().split()))
b=sorted(a)
if b[0]==5 and b[1]==5 and b[2]==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:
n=list(map(int, input().split()))
print('YES')if sorted(n)==[5,5,7]else print('NO')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S=input();print('NYOE S'[S.count('5')==2 and S.count('7')==1::2])

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

import collections

tmp = []
tmp.append(A)
tmp.append(B)
tmp.append(C)

c = collections.Counter(tmp)

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

Submission status: Accepted

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

five_count = 0
seven_count =0

for i in line:
    if i == 5:
        five_count += 1
    elif i == 7:
        seven_count += 1

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

Submission status: Accepted

Solution code:
import sys
import copy
import math
import bisect
import pprint
import bisect
from functools import reduce
from copy import deepcopy
from collections import deque

if __name__ == '__main__':
    a = [int(i) for i in input().split()]
    a5 = 0
    a7=0

    for i in a:
        if i == 5:
            a5 +=1
        if i ==7:
            a7 +=1

    if a5==2 and a7 ==1:
        print("YES")
    else:
        print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys
sys.setrecursionlimit(10**8)
INF = float("inf")


def yes():
    print("YES")  # type: str


def no():
    print("NO")  # type: str


def solve(A: int, B: int, C: int):
    if [5, 5, 7] == sorted([A, B, C]):
        yes()
    else:
        no()
    return


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,raw_input().split())
if a+b+c==17:
  print "YES"
else:
  print "NO"

Submission status: Accepted

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

five = num.count(5)
seven = num.count(7)

if five == 2 and seven ==1:
    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 a == 7) and (b == 5 or b == 7) and (c == 5 or c == 7):
  ans = 'YES'
else:
  ans = 'NO'
print(ans)

Submission status: Accepted

Solution code:
# https://atcoder.jp/contests/abc042/tasks/abc042_a

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

x = l.count("5")
y = l.count("7")

if(x==2 and y==1):
  print("YES")
else:
  print("NO")

Submission status: Accepted

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

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

Submission status: Accepted

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

a = A.count('5')
b = A.count('7')

if a == 2 and b == 1:
  print('YES')
else:
  print('NO')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = [int(x) for x in 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())
list = [A, B, C]
list.sort()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
fifcount = 0
sevcount = 0
s  = list(map(int, input().split()))

for i in range(3):
  if s[i] == 5:
    fifcount += 1
  elif s[i] == 7:
    sevcount += 1
if fifcount ==2 and sevcount ==1:

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# /usr/bin/python3
# -*- coding: utf-8 -*-
from queue import Queue
from queue import LifoQueue as Stack
from math import sqrt, floor, ceil, log2
from fractions import gcd
from itertools import permutations, combinations
from operator import itemgetter
from functools import cmp_to_key



__MOD__=(10**9)+7
yn = 'YNEOS'
judge = False
cnt = 0
ans = None


def lcm(a, b):
    return (a*b) // gcd(a,b)

def intinput():
    return int(input())

def mulinputs():
    return map(int,input().split())

def lineinputs(func=intinput):
    datas = []
    while True:
        try:
            datas.append(func())
        except EOFError:
            break
    return datas

class ModInt():
    def __init__(self, x):
        self.__x = (x % __MOD__)
    def __add__(self, other):
        if type(other) == int:
            other = self.__class__(other)
            return int(self.__class__((self.__x + other.__x)%__MOD__))
        elif type(other) == ModInt:
            return self.__class__((self.__x + other.__x)%__MOD__)
        else:
            raise Exception("Not Int or Not ModInt")
    def __sub__(self, other):
        if type(other) == int:
            other = self.__class__(other)
            return int(self.__class__((self.__x - other.__x)%__MOD__))
        elif type(other) == ModInt:
            return self.__class__((self.__x - other.__x)%__MOD__)
        else:
            raise Exception("Not Int or Not ModInt")
    def __mul__(self, other):
        if type(other) == int:
            other = self.__class__(other)
            return int(self.__class__((self.__x * other.__x)%__MOD__))
        elif type(other) == ModInt:
            return self.__class__((self.__x * other.__x)%__MOD__)
        else:
            raise Exception("Not Int or Not ModInt")
    def __truediv__(self, other):
        if type(other) == int:
            other = self.__class__(other)
            return int(self.__class__((self.__x * other.__modinv())%__MOD__))
        elif type(other) == ModInt:
            return self.__class__((self.__x * other.__modinv())%__MOD__)
        else:
            raise Exception("Not Int or Not ModInt")
    def __pow__(self, other):
        if type(other) == int:
            other = self.__class__(other)
            return int(self.__class__(pow(self.__x, other.__x, __MOD__)))
        elif type(other) == ModInt:
            return self.__class__(pow(self.__x, other.__x, __MOD__))
        else:
            raise Exception("Not Int or Not ModInt")
    def __modinv(self, m=__MOD__):
        a = self.__x
        if a == 0:
            raise ZeroDivisionError()
        if gcd(a, m) != 1:
            raise Exception("%sの逆数は求まりません。" % a)
        b, u, v = m, 1, 0
        while b != 0:
            t = a//b;
            a -= t*b
            a, b = b, a
            u -= t * v
            u, v = v, u
        u %= m
        if u < 0:
            u += m
        return u
    def __int__(self):
        return self.__x



if __name__ == '__main__':
    A, B, C = mulinputs()

    if A == B:
        flg = (A == 5) and (C == 7)
        print(yn[not flg::2])
    elif B == C:
        flg = (B == 5) and (A == 7)
        print(yn[not flg::2])
    elif C == A:
        flg = (C == 5) and (B == 7)
        print(yn[not flg::2])
    else:
        print('NO')



# EOF

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
abc =input()
five = abc.count("5")
seven = abc.count("7")

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

Submission status: Accepted

Solution code:
print('YNEOS'[''.join(sorted(input()))!='  557'::2])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from collections import Counter
l = list(map(int,input().split()))
c = Counter(l)

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
input = list(map(int, input().split()))
go = 0
siti = 0
for v in input:
  if v == 5:
    go += 1
  elif v == 7:
    siti += 1

if go == 2 and siti == 1:
  print("YES")
else:
  print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

ans="NO"
if A+B+C==17:
  if min(A,B,C)==5:
    if max(A,B,C)==7:
      ans="YES"

print(ans)

Submission status: Accepted

Solution code:
s = [int(i) for i in input().split(' ')]
 
n = [0] * 2
 
for i in s:
    if i == 5:
        n[0] += 1
    elif i == 7:
        n[1] += 1
 
if n[0] == 2 and n[1] == 1:
    print('YES')
else:
    print('NO')

Submission status: Accepted

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

n = [0] * 5

for i in s:
    if i == 5:
        n[0] += 1
    elif i == 7:
        n[1] += 1

if n[0] == 2 and n[1] == 1:
    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:
inp = list(map(int, input().split()))

flag_5 = 0
flag_7 = 0

if len(inp) == 3:
    for i in range(3):
        if inp[i] == 5:
            flag_5 += 1
        elif inp[i] == 7:
            flag_7 += 1
        else :
            break

if flag_5 == 2 and flag_7 == 1:
    print('YES')
else :
    print('NO')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

f = 2
s = 1
flg = 1
for i in range(len(haiku)):
    if haiku[i] == 5:
        f -= 1
    elif haiku[i] == 7:
        s -= 1
    else:
        flg = 0
        break

if f == 0 and s == 0 and flg == 1:
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
"""
kari1 = '7 7 5'
in1 = kari1.split()
"""
in1 = input().split()

sujiCNT = [0] * 10

for item in in1:
    sujiCNT[int(item)] = sujiCNT[int(item)] + 1

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input().split()
fiveCNT = 0
sevenCNT = 0
if s[0] == '5':
    fiveCNT = fiveCNT + 1
elif s[0] == '7':
    sevenCNT = sevenCNT + 1
if s[1] == '5':
    fiveCNT = fiveCNT + 1
elif s[1] == '7':
    sevenCNT = sevenCNT + 1
if s[2] == '5':
    fiveCNT = fiveCNT + 1
elif s[2] == '7':
    sevenCNT = sevenCNT + 1
if fiveCNT == 2 and sevenCNT == 1:
    print('YES')
else:
    print('NO')

Submission status: Accepted

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