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:
#文字列大好きいろはちゃんイージー
import numpy as np
n,l=list(map(int,input().split( )))
s=[]
for i in range(n):
    s.append(input())
S=""
a=0
while len(s)>0:
    for i in range(n-a):
        if s[i]==min(s):
            S+=s[i]
            del s[i]
            a+=1
            break
        

print(S)

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
"""
Created on Wed Sep 18 13:12:09 2019

@author: reimu
"""

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

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
"""
Created on Wed Sep 18 13:12:09 2019

@author: reimu
"""

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

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
"""
Created on Wed Sep 18 13:12:09 2019

@author: reimu
"""

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:
# -*- coding: utf-8 -*-
"""
Created on Wed Sep 18 13:12:09 2019

@author: reimu
"""

a = map(int, input().split())
if a.count(5) == 2 and a.count(7):
    print('YES')
else:
    print('NO')

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

Submission status: Runtime Error

Solution code:
N,L = map(int,input().split())
S = []
ans = ""
for i in range(N):
  S.append(input())
sorted(S)
for i in range(len(S)):
  ans += S[i]
print(ans)

Submission status: Runtime Error

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

for A,B,C in range(1,10):
if A==5 B==5 C==7 || A==7 B==5 C==5 || A==5 B==7 C==5:
	print('Yes')
else:
	print('No')

Submission status: Runtime Error

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

Submission status: Runtime Error

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

s = ""
for i in range(N):
  temp = min(Li)
  Li.remove(temp)
  s += temp
print(s)

Submission status: Runtime Error

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

s = ""
for i in range(N):
  temp = min(L)
  L.remove(temp)
  s += temp
print(s)

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
"""
Created on Fri Sep  6 16:59:47 2019

@author: ask07
"""

A=int(input("Aの文字数を入力:"))
B=int(input("Bの文字数を入力:"))
C=int(input("Cの文字数を入力:"))

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:

A=int(input("Aの文字数を入力:"))
B=int(input("Bの文字数を入力:"))
C=int(input("Cの文字数を入力:"))

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:
# -*- coding: utf-8 -*-
"""
Created on Fri Sep  6 16:59:47 2019

@author: ask07
"""

A=int(input("Aの文字数を入力:"))
B=int(input("Bの文字数を入力:"))
C=int(input("Cの文字数を入力:"))

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

str = []
for i in range(n):
  str.append(input())

str.sort()

print(''.join(str))

Submission status: Runtime Error

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

str = []
for i in range(n):
  str.append(input())

str.sort()

print("".join(str))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N,K = map(int, input().split())
kirai = [int(i) for i in input().split()] 
usable_num = [1,2,3,4,5,6,7,8,9]
for x in kirai:
    usable_num.remove(x)
    
ketasu = len(str(N))
#print(ketasu)
s = 0
for d in range(ketasu):
    s += min(usable_num) * 10 ** d 

if s >= N:
    print(s)
else:
    print(N+min(usable_num))

Submission status: Runtime Error

Solution code:
a = input();
b = input();
c = input();

d = [a,b,c];
d.sort();
if d[0]==5 and d[1]==5 and d[2]==7:
  print("YES");
else:
  print("NO");

Submission status: Runtime Error

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

f_line = input().split()
N = int(f_line[0])
L = int(f_line[1])
S = []
s = ""
for i in range(N):
    S.append(input())
S.sort()
for i in range(N):
    s = s + S[i]
print("%s"%(s))

Submission status: Runtime Error

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

f_line = input().split()
N = int(f_line[0])
L = int(f_line[1])
S = []
s = ""
for i in range(N):
    S.append(input())
S.sort()
for i in range(N):
    s = s + S[i]
print("%s"%(s))

Submission status: Runtime Error

Solution code:
a=int(input())
b=int(input())
c=int(input())

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)or(a==5 and b==7 and c==5)or(a==7 and b==5 and c==5):
  return YES
else:
  return NO

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
x,y = map(int,input().split())
list = [input() for i in range(x)]

if list[0]<=list[1] and list[0]<=list[2]:
    if list[1]<=list[2]:
        print(list[0]+list[1]+list[2])
    else:
        print(list[0]+list[2]+list[1])

if list[1]<=list[0] and list[1]<=list[2]:
    if list[0]<=list[2]:
        print(list[1]+list[0]+list[2])
    else:
        print(list[1]+list[2]+list[0])

if list[2]<=list[0] and list[2]<=list[1]:
    if list[0]<=list[1]:
        print(list[2]+list[0]+list[1])
    else:
        print(list[2]+list[1]+list[0])

Submission status: Runtime Error

Solution code:
x,y = map(int,input().split())
list = [input() for i in range(x)]

if list[0]<list[1] and list[0]<list[2]:
    if list[1]<list[2]:
        print(list[0]+list[1]+list[2])
    else:
        print(list[0]+list[2]+list[1])

if list[1]<list[0] and list[1]<list[2]:
    if list[0]<list[2]:
        print(list[1]+list[0]+list[2])
    else:
        print(list[1]+list[2]+list[0])

if list[2]<list[0] and list[2]<list[1]:
    if list[0]<list[1]:
        print(list[2]+list[0]+list[1])
    else:
        print(list[2]+list[1]+list[0])

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=list(map(int,input().split()))
A.sort()
#A = str(len("a"))
#B = str(len("b"))
#C = str(len("c"))

if A == [5,5,7]:
    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())

#A = str(len("a"))
#B = str(len("b"))
#C = str(len("c"))

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 == 7:
    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 == 7:
    print("YES")

elif A == 7 and B == 7 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 == 7 and C == 5:
    print("YES")

elif A == 7 and B == 5 and C == 5:
    print("YES")

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

Submission status: Runtime Error

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

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

elif A == 7 and B == 5 and C == 5:
    print("YES")

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

Submission status: Runtime Error

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



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

elif A == 7 and B == 5 and C == 5:
    print("YES")

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

Submission status: Runtime Error

Solution code:
1 = input()
2 = input()
3 = input()

A = len(1)
B = len(2)
C = len(3)

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

elif A == 7 and B == 5 and C == 5:
    print("YES")

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

hoge=set([A,B,C])
if hoge==set([5,7]):
    if A+B+C=17:
        print("YES")
    else:
        print("NO")

Submission status: Runtime Error

Solution code:
def Haiku(check,syllables):
    check.sort()
    syllables.sort()
    if check==syllables:
        return "YES"
    else:
        return "NO"
      
print(Haiku(check,syllables))

Submission status: Runtime Error

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):
  print('YES')
  else:
    print('NO')

Submission status: Runtime Error

Solution code:
go = 0
nana = 0
num = input().split()
for i in num:
  if i == "5":
    go+=1
  elif i == "7":
    nana+=1
if (go==2) and (nana==1):
  print(YES)
else:
  print(NO)

Submission status: Runtime Error

Solution code:
li = list(map(int, input().split()))
if li  = [5,5,7] or [5,7,5] or [7,5,5]:
  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 and b == 7) or (b == c == 5 and a == 7)):
    print("Yes")
  else: print("No")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n,l=map(int,input().split())
print('')

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

print(*S, sep='')

Submission status: Runtime Error

Solution code:
N, L = map(int, input().split())
S = [input() for i in range(N)]
 
print(*sorted(S), sep='')

Submission status: Runtime Error

Solution code:
test=list(map(int, input().split()))
 
def iroha():
 	if test==[5,5,7]:
		print("yes")
    elif test==[5,7,5]:
		print("yes")
    elif test==[7,5,5]:
        print("yes")
    else:
        print("no")
iroha()

Submission status: Runtime Error

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

 def iroha():
 	if test==[5,5,7]:
		print("yes")
    elif test==[5,7,5]:
		print("yes")
    elif test==[7,5,5]:
        print("yes")
     else:
        print("no")

iroha()

Submission status: Runtime Error

Solution code:
#入力
n, k = map(int, input().split())
d = input().split()
stop = min(10000, n * 10)

for l in range(n, stop):
  a = str(n)
  flag = 0
  for i in range(len(a)):
    for j in range(k):
      if a[i] != d[j]:
        flag += 1
      else:
        n += 1
        break
    if (flag % k) != 0 and flag == 0:
      break
  if flag == len(a) * k:
    break
print(n)

Submission status: Runtime Error

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

print("YES" if A+B+C == 17 else "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:
s = input().split()

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

Submission status: Runtime Error

Solution code:
num_list = list(map(int, input().split()))
N = num_list[0]
L = num_list[1]
S = [input(i) for i in range(N)]
for i in range(N):
        for j in range(N):
                if i < j:
                        for k in range(L):
                                if S[i][k] > S[j][k]:
                                        S[i], S[j] = S[j], S[i]
                                        break
                                else:
                                        continue
print(''.join(S))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = list(map(int, input().split()))
count_5 = 2
count_5 = 1
for i in range(len(n)):
    if n[i] == 5:
        count_5 -= 1
    elif n[i] == 7:
        count_7 -= 1
if count_5==0 and count_7==0:
    print('YES')
else:
    print('NO')

Submission status: Runtime Error

Solution code:
n = list(map(int, input().split()))
5count = 2
7count = 1
for i in range(len(n)):
    if n[i] == 5:
        5count -= 1
    elif n[i] == 7:
        7count -= 1
if 5count==0 and 7count==0:
    print('YES')
else:
    print('NO')

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
strings = raw_input().split()
cand = [5, 7, 5]

for i in range(len(cand)):
    for j in range(len(strings)):
        if cand[i] == int(strings[j]):
            cand.pop(i)
print(len(cand)==0)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
inp = input().split(" ")
N = int(inp[0])
L = int(inp[1])
s = []
for i in range(N):
  	s.append(input())
s.sort()
res = ""
for i in range(N):
	res += s[i]
print(res)

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N,L=map(int,input(split()))
raw=[]
for i in range(N):
    raw.append(input())
sortedraw=raw.sort()
ans=''
for j in range(N):
    ans+=sortedraw[j]
print(ans)

Submission status: Runtime Error

Solution code:
n,K = map(int,input().split())
use = [0,1,2,3,4,5,6,7,8,9]
useless = list(map(int,input().split()))
for i in range(K):
  use.remove(useless[i])
k = 10 - K
time = [0]
def suc(time):
  now = 0
  while True:
    if now >= len(time):
      time.append(0)
      break
    elif time[now] != k-1:
      time[now] += 1
      break
    else:
      time[now] = 0
      now += 1
  return time
#print(suc([0]))
#print(suc([1,1,1,1]))
#print(suc([1,0,1,1]))
while True:
  pay = 0
  for j in range(len(time)):
    pay += use[time[j]] * 10 ** j
  if pay >= n:
    print(pay)
    break
  time = suc(time)

Submission status: Runtime Error

Solution code:
N = map(int, input().split())
for n in N:
    if n == 5 :
        cnt_5 += 1
    elif n == 7 :
        cnt_7 += 1

if cnt_5 == 2 & cnt_7 == 1:
    print('Yes')
else:
    print('N0')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:

Submission status: Runtime Error

Solution code:
A, B, C = map(int, input().split())
if sum(A,B,C) == 17:
  print("YEAS")
else:
  print("NO")

Submission status: Runtime Error

Solution code:
nums = list(input().split())
if sum(nums) == 17:
  print("YES")
else:
  print("NO")

Submission status: Runtime Error

Solution code:
numlist = list(input())
if sum(numlist) == 17:
  print("YES")
else:
  print("NO")

Submission status: Runtime Error

Solution code:
print(sorted([int(input()) for i in range(3)]) == [5,5,7])

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())
c = int(input())
if a　＋　b　＋　c　==　１７：
	print("YES")
else:
	print("NO")

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
# スペース区切りの整数の入力
a, b, c = map(int, raw_input().split())
sum = a+b+C
if sum == 17:
 print "YES"
else: 
 print "NO"

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
# スペース区切りの整数の入力
a, b, c = map(int, raw_input().split())
sum = a+b+C
if sum == 17:
  	print "YES"
else: 
	print "NO"

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
# 整数の入力
#a = int(raw_input())
# スペース区切りの整数の入力
a, b, c = map(int, raw_input().split())
sum = a+b+C
if sum = 17:
  	print "YES"
else: 
	print "NO"

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
a, b, c = map(int, raw_input().split())
sum = a+b+C
if sum == 17:
  	print "YES"
else 
	print "NO"

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
# 整数の入力
#a = int(raw_input())
# スペース区切りの整数の入力
a, b, c = map(int, raw_input().split())
sum = a+b+C
if sum = 17:
  	print "YES"
else 
	print "NO"

Submission status: Runtime Error

Solution code:
i = input().split()
s, t = map(int, i)
str_list = []

for i in range(s):
    string = input()
    str_list.append(string)

str_list.sort()
ans = ''.join(str_list)

print(ans)

Submission status: Runtime Error

Solution code:
a,b,c = input().split()
 
a = int(a)
b = int(b)
c = int(c)
 
 
if(a + b + c) != 17:
  print("NO")
elif(a + b + c) = 17:
    if(a + b == 10) | (b + c == 10) | (c + a == 10):
      print("YES")
    else:
      print("NO")
else:
  print("NO")

Submission status: Runtime Error

Solution code:
a,b,c = input().split()
 
a = int(a)
b = int(b)
c = int(c)
 
 
if(a + b + c) != 17:
  print("NO")
elif(a + b + c) == 17:
    if(a + b == 10) || (b + c == 10) || (c + a == 10):
      print("YES")
    else:
      print("NO")
else:
  print("NO")

Submission status: Runtime Error

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

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


if(a + b + c) != 17:
  print("NO")
elif(a + b + c) = 17:
    if(a + b == 10) || (b + c == 10) || (c + a == 10):
      print("YES")
    else:
      print("NO")
else:
  print("NO")

Submission status: Runtime Error

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

if(a + b + c) != 17:
  print("NO")
elif(a + b + c) = 17:
    if(a + b == 10) || (b + c == 10) || (c + a == 10):
      print("YES")
    else:
      print("NO")
else:
  print("NO")

Submission status: Runtime Error

Solution code:
def k(l,i1,i2):
  if(a==7):
    i1 = i1+1
  if(a==5):
    i2 = i2+1
return i1,i2
  
l=list(int,input().split())
i1=0
i2=0
for i in l:
  i1,i2 = k(i,i1,i2)
print('YES' if i1==1 and i2==2 else 'NO')

Submission status: Runtime Error

Solution code:
import sys

args = sys.args[1::]
numbers = [int(s) for s in args]

if sorted(numbers) == [5, 5, 7]:
  return 'YES'
else:
  return 'No'

Submission status: Runtime Error

Solution code:
import sys

args = sys.args[1::]
ints = [int(s) for s in args]

return sorted(ints) == [5, 5, 7]

Submission status: Runtime Error

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

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

for i in range(10*n - n):
    c = str(n+i)
    
    for j in a:
        if j in c:
            break
    
    else:
        ans = c
        break
        
print(ans)

Submission status: Runtime Error

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

SIZE = h+w+2
MOD = 10**9 + 7
MOD_Farmer = 10**9+5

fact = [0] * SIZE
inv = [0] * SIZE
fact_inv = [0] * SIZE

# prepare --------------------------------
inv[0] = 0
inv[1] = 1
fact[0] = fact[1] = 1
fact_inv[0] = fact_inv[1] = 1
for i in range( 2, SIZE ):
  fact[i] = fact[i-1] * i % MOD
  fact_inv[i] = ( (fact[i] **( 10**4 ) \
                 * fact[i] **( 10**5 ) \
                 * fact[i] ** 5      ) % MOD )\
                 % MOD
# ----------------------------------------
def comb( n, r ):
  if r >= 0 and n >= 0:
    return fact[n] * fact_inv[n-r] * fact_inv[r]
  else :
    return 0.0
# ----------------------------------------

ans = 0
for i in range( h-a ):
    ans += comb(i+b-1, b-1) * comb(h-i-1+w-b-1,w-b-1)
ans %= MOD
print( ans )

Submission status: Runtime Error

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

SIZE = h+w+2
MOD = 10**9 + 7
MOD_Farmer = 10**9+5

fact = [0] * SIZE
inv = [0] * SIZE
fact_inv = [0] * SIZE

# prepare --------------------------------
inv[0] = 0
inv[1] = 1
fact[0] = fact[1] = 1
fact_inv[0] = fact_inv[1] = 1
for i in range( 2, SIZE ):
  fact[i] = fact[i-1] * i % MOD
  fact_inv[i] = fact[i] **( 10**4 ) \
              * fact[i] **( 10**5 ) \
              * fact[i] ** 5 % MOD % MOD
# ----------------------------------------
def comb( n, r ):
  if r >= 0 and n >= 0:
    return fact[n] * fact_inv[n-r] * fact_inv[r]
  else :
    return 0.0
# ----------------------------------------

ans = 0
for i in range( h-a ):
    ans += comb(i+b-1, b-1) * comb(h-i-1+w-b-1,w-b-1)
    ans %= MOD
print( ans )

Submission status: Runtime Error

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

#print( N )
#print( L )

str_set = []
for i in range( L ):
  str_set.append( input() )
#print( array )

sorted_str = ""
for s in sorted( str_set ):
  sorted_str += s
print( sorted_str )

Submission status: Runtime Error

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

#print( N )
#print( L )

str_set = set()
for i in range( L ):
  str_set.add( input() )
#print( array )

sorted_str = ""
for s in sorted( str_set ):
  sorted_str += s
print( sorted_str )

Submission status: Runtime Error

Solution code:
array = intpu().split()

N = array[0]
L = array[1]
strs = array[2:]
print( sorted(strs) )

Submission status: Runtime Error

Solution code:

a, b, c = map( int, input().split() )
if a+b+c != 17:
	print( "NO" )
 
iCountFive = 0
if a = 5:
	iCountFive += 1
if b = 5:
	iCountFive += 1
if c = 5:
	iCountFive += 1      
 
iCountSeven = 0
if a = 7:
	iCountSeven += 1
if b = 7:
	iCountSeven += 1
if c = 7:
	iCountSeven += 1      
 
if iCountFive == 2 and iCountSeven == 1:
	print( "YES" )
else :
	print( "NO" )

Submission status: Runtime Error

Solution code:
a, b, c = map( int, input() )
if a+b+c != 17:
	print( "NO" )
 
iCountFive = 0
if a = 5:
	iCountFive += 1
if b = 5:
	iCountFive += 1
if c = 5:
	iCountFive += 1      
 
iCountSeven = 0
if a = 7:
	iCountSeven += 1
if b = 7:
	iCountSeven += 1
if c = 7:
	iCountSeven += 1      
 
if iCountFive == 2 and iCountSeven == 1:
	print( "YES" )
else :
	print( "NO" )

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,b=map(int,input().split())
s = [input().strip("\"") for i in range(a)]
print("".join(s))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n,k=[s for s in input().split()]
n=int(n)
k=int(k)
hate=list(map(int, input().split())) #hate取得
like=[]
for i in range(1,10): #like取得
	if i not in hate:
		like.append(i)
pointer=0
		
for ichi in like: #1桁の場合
	if ichi>=n:
		kane=ichi
		pointer=1
		break

if pointer==0: #2桁の場合
	for ju in like:
		for ichi in like:
			if ju*10+ichi>=n:
				kane=ju*10+ichi
				pointer=1
				break
		if pointer==1:
			break


if pointer==0: #3桁の場合
	for hyaku in like:
		for ju in like:
			for ichi in like:
				if hyaku*100+ju*10+ichi>=n:
					kane=hyaku*100+ju*10+ichi
					pointer=1
					break
			if pointer==1:
				break
		if pointer==1:
			break

if pointer==0: #4桁の場合
	for sen in like:
		for hyaku in like:
			for ju in like:
				for ichi in like:
					if sen*1000+hyaku*100+ju*10+ichi>=n:
						kane=sen*1000+hyaku*100+ju*10+ichi
						pointer=1
						break
				if pointer==1:
					break
			if pointer==1:
				break
		if pointer==1:
			break

if pointer==1:
	print(kane)
else:
	print("Error!!")

Submission status: Runtime Error

Solution code:
n,k=[s for s in input().split()]
n=int(n)
k=int(k)
hate=list(map(int, input().split())) #hate取得
like=[]
for i in range(1,10): #like取得
	if i not in hate:
		like.append(i)
pointer=0
hate.sort()
like.sort()
		
for ichi in like: #1桁の場合
	if ichi>=n:
		kane=ichi
		pointer=1
		break

if pointer==0: #2桁の場合
	for ju in like:
		for ichi in like:
			if ju*10+ichi>=n:
				kane=ju*10+ichi
				pointer=1
				break
		if pointer==1:
			break


if pointer==0: #3桁の場合
	for hyaku in like:
		for ju in like:
			for ichi in like:
				if hyaku*100+ju*10+ichi>=n:
					kane=hyaku*100+ju*10+ichi
					pointer=1
					break
			if pointer==1:
				break
		if pointer==1:
			break

if pointer==0: #4桁の場合
	for sen in like:
		for hyaku in like:
			for ju in like:
				for ichi in like:
					if sen*1000+hyaku*100+ju*10+ichi>=n:
						kane=sen*1000+hyaku*100+ju*10+ichi
						pointer=1
						break
				if pointer==1:
					break
			if pointer==1:
				break
		if pointer==1:
			break

if pointer==1:
	print(kane)
else:
	print("Error!!")

Submission status: Runtime Error

Solution code:
n,k=[s for s in input().split()]
n=int(n)
k=int(k)
hate=list(map(int, input().split())) #hate取得
like=[]
for i in range(1,10): #like取得
	if i not in hate:
		like.append(i)
pointer=0
		
for ichi in like: #1桁の場合
	if ichi>=n:
		kane=ichi
		pointer=1
		break

if pointer==0: #2桁の場合
	for ju in like:
		for ichi in like:
			if ju*10+ichi>=n:
				kane=ju*10+ichi
				pointer=1
				break

if pointer==0: #3桁の場合
	for hyaku in like:
		for ju in like:
			for ichi in like:
				if hyaku*100+ju*10+ichi>=n:
					kane=hyaku*100+ju*10+ichi
					pointer=1
					break

if pointer==0: #4桁の場合
	for sen in like:
		for hyaku in like:
			for ju in like:
				for ichi in like:
					if sen*1000+hyaku*100+ju*10+ichi>=n:
						kane=sen*1000+hyaku*100+ju*10+ichi
						pointer=1
						break

if pointer==1:
	print(kane)

Submission status: Runtime Error

Solution code:
n,k=[s for s in input().split()]
n=int(n)
k=int(k)
hate=list(map(int, input().split())) #hate取得
like=[]
for i in range(1,10): #like取得
	if i not in hate:
		like.append(i)
pointer=0
		
for ichi in like: #1桁の場合
	if ichi>=n:
		kane=ichi
		pointer=1
		break

if pointer==0: #2桁の場合
	for ju in like:
		for ichi in like:
			if ju*10+ichi>=n:
				kane=ju*10+ichi
				pointer=1
				break

if pointer==0: #3桁の場合
	for hyaku in like:
		for ju in like:
			for ichi in like:
				if hyaku*100+ju*10+ichi>=n:
					kane=hyaku*100+ju*10+ichi
					pointer=1
					break

if pointer==0: #4桁の場合
	for sen in like:
		for hyaku in like:
			for ju in like:
				for ichi in like:
					if sen*1000+hyaku*100+ju*10+ichi>=n:
						kane=sen*1000+hyaku*100+ju*10+ichi
						pointer=1
						break

if pointer==1:
	print(kane)
#else:
	#print("Error!!")

Submission status: Runtime Error

Solution code:
(n,l)=map(int, input().split())
list1=[]
for i in range(n):
	list1.extend(input().split())
list1.sort()
for i in range(n):
	print(list1[i],end="")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
[a,b,c]=input().split()
[A,B,C]=map(len, [a,b,c])
haiku=[A,B,C]
haiku.sort()
if haiku==[5,5,7];
	print("YES")
else;print("NO")

Submission status: Runtime Error

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