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: Runtime Error

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

if (5 in [a, b, c] and 7 in [a, b, c]) and a+b+c == 17:
  print("YES")
  else:
    print("NO")

Submission status: Runtime Error

Solution code:
n,l=[int(x) for x in input().split()]
b=[input() for x in range(n)]
b.sort()
print(''.join(b))

Submission status: Runtime Error

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 print("NO"))

Submission status: Runtime Error

Solution code:
A=input()
B=input()
C=input()

if len(A)=7 and len(B)=5 and len(C)=5 :
	print("YES")
else:
  	print("NO")
  
if len(A)=5 and len(B)=7 and len(C)=5 :
	print("YES")
else:
  	print("NO")
    
if len(A)=5 and len(B)=5 and len(C)=7 :
	print("YES")
else:
  	print("NO")

Submission status: Runtime Error

Solution code:
h,w,a,b = map(int,input().split())
mod = 10**9 + 7
dp = [[0 for i in range(h+1)] for j in range(w+1)]
 
for i in range(w):
    for j in range(h):
        dp[i+1][j+1] = (dp[i][j+1] + dp[i+1][j])%mod
        if i == 0 and j == 0:
            dp[i+1][j+1] = 1
        if i < b and j >= h-a:
            dp[i+1][j+1] = 0
print(dp[w][h])

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
l = map(int,list(input()))
if(l[0]==l[1]):
  print("YES")
else:
  print("NO")

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,b,c=list(map(int,input().split()))
k.sort()
if k[0] == k[1] == 5 and k[2] == 7:
   print(Yes)
else:print(No)

Submission status: Runtime Error

Solution code:
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: Runtime Error

Solution code:
A=int(input())
B=int(input())
C=int(input())
 
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: Runtime Error

Solution code:
A=int(input())
B=int(input())
C=int(input())

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: Runtime Error

Solution code:
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: Runtime Error

Solution code:
if [A,B,C]=[5,5,7]or[5,7,5]or[7,5,5]:
   print(YES)
   else:print(NO)

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
a,b=map(int,input().split())
print(''.join(sorted([ input() for i in range(a)])))

Submission status: Runtime Error

Solution code:
n,l = map(int,input().split())
print("".join(sorted([ input() for i in range(n)])))

Submission status: Runtime Error

Solution code:
n,l = map(int,input().split())
print("".join(sorted([ input() for i in range(a)])))

Submission status: Runtime Error

Solution code:
a=input()
print(["No", "Yes"][a.count("5"==2 and a.count("7")==1)])

Submission status: Runtime Error

Solution code:
a=input()
print(["Yes", "No"][a.count("5"==2 and a.count("7")==1)])

Submission status: Runtime Error

Solution code:
int A,B,C

if

Submission status: Runtime Error

Solution code:
x = int(input("はじめ"))
y = int(input("中"))
z = int(input("終わり"))


if x >= 1 and x <= 10:
    if x == 5:
        if y == 5:
            if z == 7:
                print("YES")
            elif z == 5:
                print("NO")
                
        elif y == 7:
            if z == 5:
                print("YES")
            elif z == 7:
                print("NO")
                
    elif x == 7:
        if  y == 5:
            if z == 5:
                print("YES")
            elif z == 5:
                print("NO")
            else:
                print("NO")
        else:
            print("NO")
    else:
        print("NO")
else:
    print("NO")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
num = [x for x in input().split() ]
count5 = num.count5("5")
count7 = num.count7("7")
if count5 == 2 and count7 == 1:
  print("YES")
else:
  print("NO")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

list_irioha = [a, b, c]
count = 0
if a + b + c == 17:
    for i in list_iroha:
        if i == 5:
            count += 1
            if count == 2:
                print("YES")
                exit()
print("NO")
exit()

Submission status: Runtime Error

Solution code:
a = 1
a*= a for a in input().split()

Submission status: Runtime Error

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: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
A= int(input())
B= int(input())
C = int(input())

#575を作れるか判定
if A == B ==5 and C ==7:
    print('YES')
elif A ==C ==5 and B==7:
    print('YES')
elif A ==7 and B ==C ==5:
    print('YES')
    
else:
    print('NO')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import sys

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

if 7 in [a,b,c]:
  if filter(lambda x:x ==5,[a,b,c]) is 2:
  	print("YES")
    sys.exit()

print("NO")

Submission status: Runtime Error

Solution code:
わからないです

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,b,c = map(int,(input().split()))
l = [a,b,c]
if int(l.count(5)) == 2 and int(l.count(7)) == 1:
	print(Yes)
else:
	print(No)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
if(A == 5):
  if(B == 5):
  	if(C == 7):
      print('Yes')
    else:
      print('No')
  elif(B == 7):
    if(C == 5):
      print('Yes')
    else:
      print('No')
  else:
    print('No')
elif(A == 7):
  if(B == 5):
    if(C == 5):
      print('Yes')
    else:
      print('No')
  else:
    print('No')
else:
  print('No')

Submission status: Runtime Error

Solution code:
n, k = map(int, input().split())
dis = [_ for _ in input().split()]
for yen in range(1, 100000):
    if yen < n:
        pass
    else:
        if len(set(list(str(yen))) & set(dis)) == 0:
            print(yen)
            exit()

Submission status: Runtime Error

Solution code:
#include<>stdio.h>

int main(void)
{
  int a,b,c;
  int count5 = 0;
  int count7 = 0;
  
  scanf("%d %d %d ",&a,&b,&c);
  if (a == 5) {
    cont5++;
  }
  elif(a == 7) {
    count7++;
  }
  
  if (b == 5) {
    cont5++;
  }
  elif(b == 7) {
    count7++;
  }
  
  if (c == 5) {
    cont5++;
  }
  elif(c == 7) {
    count7++;
  }
  
  if (count5 == 2 && count7 == 1){
    printf("YES \n")
  }
  else{
    printf("NO \n")
  }
  
  return 0;
}

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n=int(input())
text=[input() for i in range(n)]
print("".join(sorted(text)))

Submission status: Runtime Error

Solution code:
word = list(input())
#print(word) ['5', '5', '7']
a=0
b=0
for i in range(3):
	if word[i]==5:
    	a=a+1
for i in range(3):
	if word[i]==7:
      	b=b+1
if a=2 and b=1:
	print("YES")
else:
  	print("NO")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
A = input()
B = input()
C = input()

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: Runtime Error

Solution code:
n,k = map(str, input().split())
li = list(map(str, input().split()))
Li = list(n)
while len(set(Li)&set(li)):
  n = int(n)+1
  Li = list(str(n))
else: print("".join(Li))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,b,c = map(int, input().split())
if (a=b<c or b=c<a or c=a<b): print("YES")
else: print("NO")

Submission status: Runtime Error

Solution code:
a,b,c = map(str, input().split())
if (a=b or b=c or c=a):
  if(not a=b=c): print("YES")
  else: print("NO")
else: print("NO")

Submission status: Runtime Error

Solution code:
a,b,c = input().split()
if (a=b or b=c or c=a and not a=b=c): print("YES")
else: print("NO")

Submission status: Runtime Error

Solution code:
n,l = map(int ,input().strip().split())
s = [""]*n
for i in range(n):
    s[i]=input()
s.sort()
sol = ""
for i in s:
    sol += i
print(sol)

Submission status: Runtime Error

Solution code:
n,l = map(int ,input())
s = [""]*n
for i in range(n):
    s[i]=input()
s.sort()
sol = ""
for i in s:
    sol +=i
print(sol)

Submission status: Runtime Error

Solution code:
def main():
  print("aaa")
  a = list(input())
  a = [int(aa) for aa in a]
  a = sorted(a)
  if a==[5,7,7]:
    return "YES"
  else:
    return "NO"
  
  
if __name__ == "__main__":
  main()

Submission status: Runtime Error

Solution code:
def main(a):
  print("aaa")
  
if __name__ == "__main__":
  main(a)

Submission status: Runtime Error

Solution code:
I=input().split()
c5=0
c7=0

for i in I:
  if i=="5":
    c5+=1
  elif i=="7":
    c7+=1
if c5==2 and c7=1:
  print("YES")
else:
  print("NO")

Submission status: Runtime Error

Solution code:
n, l = map(int, input().split())
a = [input() for _ in range(n)]
a.sort()
print("".join(a))

Submission status: Runtime Error

Solution code:
a = int(input("A:"))
b = int(input("B:"))
c = int(input("C:"))
con_1 = a + b + c == 17
con_2 = 1 <= a, b, c <= 10
if con_1:
    if con_2:
        print("yes")
    else:
        print("no")
else:
    print("no")

Submission status: Runtime Error

Solution code:
a = int(input("A:"))
b = int(input("B:"))
c = int(input("C:"))
con_1 = a + b + c == 17
con_2 = 1 <= a, b, c
con_3 = a, b, c <= 10
if con_1 and con_2 and con_3:
    print("yes")
else:
    print("no")

Submission status: Runtime Error

Solution code:
n = 0
for i in range(10):
    n += c[i]
if n > 3:
    cnt += math.floor(n / 4)

print(cnt)
#
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")

Submission status: Runtime Error

Solution code:
n,k = map(int,input().split())
l = list(input().split())
for i in range(n,n+10001):
    chk = True
    
    for st in list(str(i)):
        if st in l:
            chk = False
    if chk:
        print(i)
        exit()

Submission status: Runtime Error

Solution code:
number1 = raw_input ()
number2 = raw_input ()
number3 = raw_input ()
 
if number1 + number2 + number3 == 12:
    print ('YES')
if number1 + number2 + number3 != 12:
    print ('NO')

Submission status: Runtime Error

Solution code:
number1 = raw_input ()
number2 = raw_input ()
number3 = raw_input ()
 
if number1 + number2 + number3 == 12:
    print ('yes')
if number1 + number2 + number3 != 12:
    print ('no')

Submission status: Runtime Error

Solution code:
number1 = raw_input ()
number2 = raw_input ()
number3 = raw_input ()

if number1 + number2 + number3 == 12:
    print ('yes')
if number1 + number2 + number3 != 12:
    print ('no')

Submission status: Runtime Error

Solution code:
import sys
import itertools
readline = lambda:sys.stdin.readline().rstrip()
N,K = readline().split()
dd = {int(s) for s in readline().split()}
table = [None] * 10
a = 10
for i in range(9,-1,-1):
    if i not in dd:
        a = i
    table[i] = a

nn = [int(n) for n in N]
mm = [table[n] for n in nn]
tab_min = min(x for x in table if x>0)
tab_zero = table[0]
        
if mm[0]==10:
    print(tab_min, end='')
    for z in itertools.repeat(tab_zero, len(mm)-1):
        print(z, end='')
else:
    for z,c in zip(mm, mm[1:]+[0]): 
        if c==10:
            print(min(tab_min, z), end='')
        elif z==10:
            print(tab_zero, end='')
        else:
            print(z, end='')
print()

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

like = []

ans = n

while (1):

    c = True
    for ii in range(0, 4):
        b = n // pow(10, ii)
        d = b % 10

        if b == 0:
            break

        if d in a:
            c = False
            break

    if (c):
        ans = n
        break
    n += 1

print(ans)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
phrases = map(int, input().split())
phrases.sort(reverse=True)

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

S = []
for s in range(0, N):
    S.append(input())
S.sort()

print(''.join(S))

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())
c = int(input())
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: Runtime Error

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

if A * B * C == 5 * 5 * 7:
    print('Yes')
else:
    pritn('No')

Submission status: Runtime Error

Solution code:
if A == 5:
  if B == 5:
    if C == 7:
      print(YES)
    else:
      print(NO)
  else if B == 7:
    if C == 5:
      print(YES)
    else:
      print(NO)
  else:
    print(NO)
else if A == 7:
  if B == 5 and C == 5:
    print(YES)
else:
  print(NO)

Submission status: Runtime Error

Solution code:
n, k = map(int,input().split())
d = list(map(str, input().split()))
while(n>0):
    S = str(n)
    t = 0
    for i in S:
        if i not in d:
            t += 1
    if t == len(S):
        print(int(S))
        break
    else:
        n += 1

Submission status: Runtime Error

Solution code:
# coding: utf-8
num, size = map(int,input().split())
data =[]
for x in range(num):
    data.append(input())
print(''.join(sorted(data)))

Submission status: Runtime Error

Solution code:
# coding: utf-8
num, size = map(int,input().split())
data =[]
for x in range(num):
    data.append(input())
print(str.join(data.sort()))

Submission status: Runtime Error

Solution code:
num, size = map(int,input().split())
data =[]
for x in range(num):
    data.append(input())
data.sort()
print(data.join())

Submission status: Runtime Error

Solution code:
a = list(map(int, input().split()))
strs=[]
for i in range(a[0]):
    strs.append(input())
print("".join(sorted(strs)))

Submission status: Runtime Error

Solution code:
a = list(map(int, input().split()))
strs=[]
for i in range(a[0]):
	strs.append(input())
print("".join(sorted(strs)))

Submission status: Runtime Error

Solution code:
a = list(map(int, input().split()))
strs=[]
for i in range(a[0]):
	strs.push(input())
print("".join(sorted(strs)))

Submission status: Runtime Error

Solution code:
n, l = map(int, input().split())
strs=[]
for i in range(n):
	strs.push(input())
print("".join(sorted(strs)))

Submission status: Runtime Error

Solution code:
data = list(map(int,"5 7 5".split())
if 2 == data.count(5) and 1 == data.count(7):
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a, b, c = int(input.splita = [5,7,5]
b = map(int, input().split())

for i in b:
    try:
        b.remove(i)
    except:
        print('NO')
        quit()

print('OK')

Submission status: Runtime Error

Solution code:
A = input()
B = input()
C = input()

if A != 5 or 7:
  print("NO")
  
else if B != 5 or 7:
  print("NO")
  
else if C != 5 or 7:
  print("NO")

else if len(A) + len(B) + len(C) = 17:
  print("YES")
else:
  print("NO")

Submission status: Runtime Error

Solution code:
a1=input()
a2=input()
a3=input()
a=[a1,a2,a3]
a.sort()
flag=0
for i in range(2):
    if a[i]!='5':
        flag=flag+1
if a[2]!='7':
    flag=flag+1
 
if flag==0:
    print("YES")
else:
    print("NO")

Submission status: Runtime Error

Solution code:
a,b,c=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: Runtime Error

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

Submission status: Runtime Error

Solution code:
n,l=map(int,input().split())
s=list(input() for _ in range(n))
s.sort()
result=''.join(s)
print(result)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

if a[0] == 5:
  if a[1] == 5:
    if a[2] == 7:
      return "YES":

return "NO"

Submission status: Runtime Error

Solution code:
s=input()
a=[]
for i in s:
	if i == 'B':
      if x:
		a.pop()
	else:
		a.append(i)
print(''.join(a))

Submission status: Runtime Error

Solution code:
n,l=map(int,input().split())
s=sorted([input() for _ in range(n)])
print(*s, sep="")

Submission status: Runtime Error

Solution code:
# 入力
N,L=map(int,input().split())

l=[]
for i in range(N):
  l.append(input())

# ソート
l.sort()

# 出力
print(''.join(l))

Submission status: Runtime Error

Solution code:
n, l = map(int, input().split())
s = []
for i in range(n):
    s.append(input())
print(''.join(sorted(s)))

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
N,L = list(map(int, input().split()))
l=[]
for i in range(N):
    l.append(input())
    l.sort()
print(l)

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
N,L = list(map(int, input().split()))
l=[]
s=N*L
for i in range(s):
    l.append(input())
l.sort()
print(l)

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
N,L = list(map(int, input().split()))
l=[]
for i in range(N*L):
    l.append(input())
l.sort()
print(l)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
abc=list(map(int,input().split()))
abc.sort()
if A ==[5, 5, 7]:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

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

if a==b==5:
  if c==7:
    return print("Yes")
  else:
    return print("No")
elif a==c==5:
  if b==7:
    return print("Yes")
  else:
    return print("No")
elif b==c==5:
  if a==7:
    return print("Yes")
  else:
    return print("No")
else:
  return print("No")

Submission status: Runtime Error

Solution code:
a, b, c=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: Runtime Error

Solution code:
ins = list(map(int, input().split()))
N = ins[0]
L = ins[1]
Ss = []

for i in range(N):
  Ss.append(input())

for i, a in enumerate(Ss):
  key = a
  j = i - 1

  while j >= 0 and Ss[j] > a:
    Ss[j + 1] = Ss[j]
    j = j - 1

  Ss[j + 1] = key

print(' '.join(Ss))

Submission status: Runtime Error

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

if a.count(5)==2 and a.count(7)==1:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
if

Submission status: Runtime Error

Solution code:
A,B,C = map(int,inputs().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: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
#N = input().split()
#huga = list(map(int, input().split()))

N = list(map(int, input().split()))
if (N[0]==7 or N[1]==7 or N[2]==7){
  if (N[0]==5 or N[1]==5 or N[2]==5 and N[0]+N[1]+N[2]==12){
    print YES
  }
  else{
  	print NO
  }
}
else{
  print NO
}

Submission status: Runtime Error

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

s = [str(input()) for i in range(N)]
p = sorted(s)
print("".join(p))

Submission status: Runtime Error

Solution code:
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: Runtime Error

Solution code:
if (A=5^B=5^C=7|A=5^B=7^C=5|A=7^B=5^C=5):
  print ("yes")
else:
  print ("no")

Submission status: Runtime Error

Solution code:
import sys

a = int(input())
b = int(input())
c = int(input())

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: Runtime Error

Solution code:
a , b = map(int,input().split())
list = []
papa = ""
for i in range(b):
  list.append(input()) 
c = sorted(list)
for x in c:
  papa += x
print(papa)

Submission status: Runtime Error

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

if

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
L, N = map(int, input().split())
s = [input() for i in range(N)]
s.sort()
print(''.join(s))

Submission status: Runtime Error

Solution code:
N, L = map(int,input().split())
words = []
for i in range(N):
  words.append(input())
 
words.sort()
print(''.join(words))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

str = input()
strc = ''
for i in range(int(num[0])-1):
  strc = input()
  if str > strc:
    str = strc + str
  else:
    str = str + strc
print(str)

Submission status: Runtime Error

Solution code:
num= input().split()
5count = 0
7count = 0
 
for i in range(len(num)):
  if num[i] == '5':
    5count += 1
  elif num[i] == '7':
    7count += 1
if 5count == 2 and 7count == 1:
  print('YES')
else:
  print('NO')

Submission status: Runtime Error

Solution code:
num= int(input().split())
5count = 0
7count = 0

for i in range(len(num)):
  if num[i] == 5:
    5count += 1
  elif num[i] == 7:
    7count += 1
if 5count == 2 and 7count == 1:
  print('YES')
else:
  print('NO')

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,b,c=(int(x) for x in input().split())
7_count=0
5_count=0
def check(x):
  if x==5:
      global 5_count
      5_count+=1
  elif x==7:
      global 7_count
      7_count+=1
check(a)
check(b)
check(c)
if 7_count==1 and 5_count==2:
  print("YES")
else:
  print("NO")

Submission status: Runtime Error

Solution code:
a,b,c=(int(x) for x in input().split())
7_count=0
5_count=0
def check(x):
	if x==5:
		global 5_count
        5_count+=1
	elif x==7:
 	    global 7_count
		7_count+=1
check(a)
check(b)
check(c)
if 7_count=1 and 5_count=2:
  print("YES")
else:
  print("NO")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a, b, c = map(int, input().split())
if a+b+c = 19:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
m, n = map(int,input().split())
l = map(str,input().split())
l2 = {str(i) for i in range(10)}
l3 = set(l2) - set(l)

ans = 0
for i in range(m, 100000):
    nums = set(str(i))
    if nums <= l3:
        print(i)
        break

Submission status: Runtime Error

Solution code:
A, B, C = map(int, input().split())
if A + B + C == 17:
  if A == 5:
    if B + C == 12:
      print(YES)
    else:
      print(NO)
  if A == 7:
    if B + C == 10:
      print(YES)
    else:
      print(NO)
  else:
    print(NO)
else:
  print(NO)

Submission status: Runtime Error

Solution code:
A, B, C = map(int, input().split())
if A + B + C == 17:
  if A == 5:
    if B + C == 12:
      return YES
    else:
      return NO
  if A == 7:
    if B + C == 10:
      return YES
    else:
      return NO
  else:
    return NO
else:
  return NO

Submission status: Runtime Error

Solution code:
A, B, C = int(input().split().split())
array = [A, B, C]
sa = sorted[array]
if sa = [5, 5, 7]:
  return YES
else:
  return NO