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 itertools

n, k = map(int, input().split())
array = {x for x in input().split()}
num_array = {str(x) for x in range(10)}
like_num = array^num_array

res = float("inf")
for i in range(1, 100000):
    tmp = set(list(str(i)))
    if tmp.issubset(like_num):
        if n <= i < res:
            res = i
print(res)

Submission status: Runtime Error

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

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

if __name__ == '__main__':
    main()

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,b,c =map(int(input().split()))
L=[]
L.append(a)
L.append(b)
L.append(c)
if L.count(5)==2 and L.count(7)==1 :
    print("YES")
else :
    print("NO")

Submission status: Runtime Error

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

print("Yes" if sorted(abc) == [5, 5, 7] else "No")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
A,B,C = (int(i) for i in input().split())

Aaddition = A+B+C
if Addition != 17:
  haiku = False
else:
  if ((A==5 or A==7) and (B==5 or B==7) and (C==5 or C==7)):
    haiku = True
  else:
    haiku = False
    
if haiku:
  print("YES")
else:
  print("NO")

Submission status: Runtime Error

Solution code:
A,B,C = (int(i) for i in input().split())

Aaddition = A+B+C
if Addition != 17:
  haiku = False
else:
  if((A==5 or A==7) and (B==5 or B==7) and (C==5 or C==7) ):
    haiku = True
  else:
    haiku = False
    
if haiku:
  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:
h, w, lower_bound, left_bound = map(int, input().split())

grid = [[0 for i in range(w)] for j in range(h)]

lower_i = h - lower_bound
left_i = left_bound

for i in range(lower_i, len(grid)):
  for j in range(0, left_i):
    grid[i][j] = 1

def count_path(row, col, grid, memo):
  if memo[row][col] != -1:
    return memo[row][col]

  path_count = 0
  if grid[row][col] == 1:
    memo[row][col] = 0
    return memo[row][col]

  if row == h-1 and col == w-1:
    return 1

  if row+1 < len(grid):
    path_count += count_path(row+1, col, grid, memo)
  if col+1 < len(grid[0]):
    path_count += count_path(row, col+1, grid, memo)

  memo[row][col] = path_count
  return memo[row][col]

path_count = 0
memo = [[-1 for i in range(w)] for j in range(h)]
path_count += count_path(0, 0, grid, memo)
final_path_count = path_count % (pow(10, 9) + 7)
print(final_path_count)

Submission status: Runtime Error

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

for i in range(10*n+2):
  if i >= n:
    s = str(i)
    for j in range(len(s)):
      if int(s[j]) in d:
        break
    print(i)

Submission status: Runtime Error

Solution code:
n, k = map(int, input().split())
d_list = list(map(int, input().split()))
num_list = [0,1,2,3,4,5,6,7,8,9]

for d in d_list:
  num_list.remove(d)

final_price = ''

def is_dislike_number(number, dislike_list):
  if number in dislike_list:
    return True
  else:
    return False

for i, num in enumerate(str(n)):
  num = int(num)
  if is_dislike_number(num, d_list):
    while num < 10:
      num += 1
      digit = len(str(n)) - i - 1
      if not is_dislike_number(str(num), d_list):
        final_price += str(num)
        for j in range(digit):
          final_price += str(num_list[0])
        print(final_price)
        exit()

  final_price += str(num)
print(final_price)

Submission status: Runtime Error

Solution code:
ans=list(map(int,input().split()))
dic=[]
for x in ans:
  if(x!=5 or x!=7):
    print("NO")
    break
  else:
  	dic[str(x)]=dic.get(str(x),0）+1
if(dic["5"]!=2 and dic["7"]!=1):
	print("NO")
else:
  	print("YES")

Submission status: Runtime Error

Solution code:
ans=list(map(int,input().split()))
dic=[]
for x in ans:
  if(x!=5 or x!=7):
    print("NO")
    break
  else:
  	dic[str(x)]=dic.get(x，0）+1
if(dic["5"]!=2 and dic["7"]!=1):
	print("NO")
else:
  	print("YES")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
print(["YES","NO"][bool(len(list(multiset(map(int,input().split()))-multiset([5,5,7]))))])

Submission status: Runtime Error

Solution code:
print(["YES","NO"][bool(len(list(multiset(input().split())-multiset([5,5,7]))))])

Submission status: Runtime Error

Solution code:
print(["YES","NO"][bool(len(list(multiset(input.split())-multiset([5,5,7]))))])

Submission status: Runtime Error

Solution code:
print(["YES","NO"][bool(len([set(input.split())-set([5,5,7])]))])

Submission status: Runtime Error

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

Submission status: Runtime Error

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

a = 0
b = 0
for i in len(l):
  if l[i] == 5:
    a = a + 1
  elif l[i] == 7:
    b = b + 1

if (a==2 or b ==1):
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
da = list(map(int,input(),split()))
a = 0
k = 0
for i in range(3):
  if  da[i] == 5:
    a += 1
  elif da[i] == 7:
    k += 1

if a == 2 and k == 1:
  print("YES")
else:
  print("NO")

Submission status: Runtime Error

Solution code:
ls = input().strip().split()
return (ls.count('7') == 1) and (ls.count('5')==2)

Submission status: Runtime Error

Solution code:
N, K = map(int, input().split())
D = list(map(int, input().split()))
shiharai=N
l = [int(x) for x in list(str(N))]
c=len(l)
for i in range(len(l)):
    while l[i] in D:
        shiharai+=1
        l = [int(x) for x in list(str(shiharai))]
if len(l)!=c:
    for i in range(len(l)):
        while l[i] in D:
            shiharai+=1
            l = [int(x) for x in list(str(shiharai))]
print(shiharai)

Submission status: Runtime Error

Solution code:
import sys
import defaultdict

args = sys.argv
dd = defaultdict(int)

for arg in args:
    dd[arg] += 1

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

Submission status: Runtime Error

Solution code:
print('YES' if sorted(input()) == [*'  557'] else 'NO')

Submission status: Runtime Error

Solution code:
print('YES' if sorted(input()) == [*'  557'] else 'No')

Submission status: Runtime Error

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

GO=0
SHICHI=0

For	i	in	N:
  	if	i==	5:	GO	+=1
    elif	i==7:	SHICHI+=1
      
if	GO==2	and	SHICHI==1:print("YES")
 else:print("NO")

Submission status: Runtime Error

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

GO=0
SHICHI=0

For	i	in	N:
  	if	i==	5:	GO	+=1
    elif	i==7:	SHICHI+=1
      
if	GO==2	and	SHICHI==1:print("YES")
  else:	print("NO")

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

num_list = map(num_list, int)

sorted_list = num_list.sorted()
 
if sorted_list == [5, 5, 7]:
  print("YES")
else:
  print("NO")

Submission status: Runtime Error

Solution code:
num_list = int(input().split(" "))

sorted_list = num_list.sorted()

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

Submission status: Runtime Error

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

S.sort()
result = ""
for i in range(N):
    result += S[i]
print(result)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import sys

debug_mode = True if len(sys.argv) > 1 and sys.argv[1] == "-d" else False
if debug_mode:
    import os
    inf = open(os.path.basename(__file__).replace(".py", ".in"))

    def input():
        return inf.readline()
else:
    inf = sys.stdin

# ==============================================================

def main():
    n, k = [int(x) for x in input().strip().split()]
    d = [x for x in input().strip().split()]

    while True:
        str_n = str(n)
        if any(i in str_n for i in d):
            n += 1
        else:
            break
    
    print(n)


main()

# ==============================================================

if debug_mode:
    inf.close()

Submission status: Runtime Error

Solution code:
M = 10**9 + 7
L = 200000
 
Fm = {}
inverseFm = {}
x = 1
for i in range(L):
    Fm[i] = x
    x = x * (i + 1) % M
 
def inverseFm(x):
    result = pow(Fm[x], M - 2, M)
    return result
 
def C(n, r):
    result = Fm[n] * inverseFm(r) * inverseFm(n - r) % M
    return result
 
def solve(H, W, A, B):
    result = 0
    for i in range(B + 1, W + 1):
        result += C(i + H - A - 1 - 1, i - 1) * C(W - i + A - 1, W - i)
    return result % M
 
H, W, A, B = [int(_) for _ in input().split()]
 
print(solve(H, W, A, B))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a=[int(input()) for _ in range(3)]
b=sorted(a)
if b[0]==5 and b[1]==5 and b[2]==7:
  print("YES")
else:
  print("NO")

Submission status: Runtime Error

Solution code:
a=[int(input()) for _ in range(3)]
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:
a=[int(input()) for _ in range(3)]
if sorted(a)==[5,5,7]:
  print("YES")
else:
  print("NO")

Submission status: Runtime Error

Solution code:
a=[int(input()) for _ in range()]
if sorted(a)==[5,5,7]:
  print("YES")
else:
  print("NO")

Submission status: Runtime Error

Solution code:
A, B, C = [int(i) for i in input().split()]
if sorted([A,B,C]==[5,5,7]):
  print('YES')
else:
  print('NO')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
print("YES" is 5, 7, 5 == list(map(int, input().split())) else "NO")

Submission status: Runtime Error

Solution code:
print("YES" is 5, 7, 5 == map(int, input().split()) else "NO")

Submission status: Runtime Error

Solution code:
# main関数
if __name__ == '__main__':

    n, l = map(int,input().split())
    a = []
    for i in range(n) :
        a.append(input())

    a.sort()

    for i in range(n) :
        print(a[i], end="")

    print()

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = list(map(int,input().split()))
if 5 in n :
    n.remove(5)
    elif 5 in n :
        elif 7 in n :
            print("YES")
else :
    print("NO")

Submission status: Runtime Error

Solution code:
n = list(map(int,input().split()))
if 5 in n :
    n.remove(5)
    elif 5 in n :
        elif 7 in n :
                print("YES")
else :
    print("NO")

Submission status: Runtime Error

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

test_lists = [input() for i in range(nyuuryoku_num)]
print("".join(sorted(test_lists)))

Submission status: Runtime Error

Solution code:
a = map(int, raw_input().strip().split())
sort(a)
if a[0] == 5 and a[1] == 5 and a[2] == 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()

A=''.join(S)

print(A)

Submission status: Runtime Error

Solution code:
list = []
for i in range(3):
    n = int(input())
    list.append(n)
list.sort()
if list[0] == 5 & list[1] == 5 & list[2]:
    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:
haiku = int(input())
x = haiku.split(' ')
num_5 = 0
num_7 = 0

for v in x:
	if x[v] == 5:
		num_5 ++
	elif x[v] == 7:
		num_7 ++

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

Submission status: Runtime Error

Solution code:
haiku = int(input())
x = haiku.split(' ')
num_5 = 0
num_7 = 0

for v in x:
	if x[v] == 5:
		num_5 ++
	elif x[v] == 7:
		num_7 ++

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

Submission status: Runtime Error

Solution code:
a = [int(i) for i in 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:
L, N = map(int, raw_input().split())
if L > 100 or L < 1:
 print 'error'
 exit()
if N > 100 or N < 1:
 print 'error'
 exit()
 
 
input = []
for i in range(0, N):
 sentence = raw_input()
 if len(sentence) != L:
  print 'error'
  exit()
 for j in range(0, L):
  if sentence[j] < 'a' or sentence[j] > 'z':
   print 'error'
   exit()
 input.append(sentence)
for x in sorted(input):
    print x

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
f = map(int, input().split())
f = sorted(f)
if f==[5, 5, 7]:

Submission status: Runtime Error

Solution code:
if '557' == ''.join(sorted(input().split())):
    return 'YES'
else:
    return 'NO'

Submission status: Runtime Error

Solution code:
n,k=map(int,input().split())
d=[i for i in input().split()]
while True:
    f=False
    for i in d:
        if i not in str(n):
            f=True
            break
    if f:
        break
    n+=1
print(n)

Submission status: Runtime Error

Solution code:

N, K = raw_input().split()
D = raw_input().split()
candi = [str(i) for i in xrange(10)]
for d in D:
    candi.remove(d)

def decide(i):
    if i >= len(N):
        return ''
    for c in candi:
        if N[i] == c:
            return c + decide(i + 1)
        elif N[i] < c:
            return c + candi[0] * (len(N) - i - 1)

if candi[-1] * len(N) >= N:
    print decide(0)
else:
    print (candi[0] if candi[0] != '0' else candi[1]) + candi[0] * len(N)

Submission status: Runtime Error

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

for i in range(len(a)):
    if a[i] = 5:
        flag5 += 1
    elif a[i] = 7:
        flag7 += 1
    else:
        flag5 = 0
        break
if flag5=2 and flag7=1:
    print('YES')
else:
    print('NO')

Submission status: Runtime Error

Solution code:
#coding: utf-8
#ABC042C

n,k=map(int,raw_input().split())
d=raw_input().split()

while True:
 if all(x not in str(n) for x in d):
  res=n
  break
 n+=1
 
print res

Submission status: Runtime Error

Solution code:
#coding: utf-8
#ABC042B

n,l=map(int,raw_input().split())
s=[raw_input() for i in xrange(n)]

s.sort()
res="".join(s)
print res

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:

ini = int(input().split(" ")[0])
negaset = [int(x) for x in input().split(" ")]
okset = sorted([str(i) for i in range (10) if i not in negaset]) 
#print(ini,okset)

for p in itertools.product(okset,repeat = 5):
    stp = int("".join(p))
    if stp >= ini:
        print(stp)
        break

Submission status: Runtime Error

Solution code:
import itertools
ini = int(input().split(" ")[0])
negaset = [int(x) for x in input().split(" ")]
okset = sorted([str(i) for i in range (10) if i not in negaset]) 
#print(ini,okset)

for p in itertools.product(okset,repeat = 5):
    stp = int("".join(p))
    if stp >= ini:
        print(stp)
        break

Submission status: Runtime Error

Solution code:
# coding: utf-8
# Here your code !
import itertools
ini = int(input().split(" ")[0])
negaset = [int(x) for x in input().split(" ")]
okset = sorted([str(i) for i in range (10) if i not in negaset]) 
#print(ini,okset)

for p in itertools.product(okset,repeat = 5):
    stp = int("".join(p))
    if stp >= ini:
        print(stp)
        break

Submission status: Runtime Error

Solution code:
# coding: utf-8
# Here your code !
ipt = input().split(" ")
j,k =0,0
for i in ipt:
    if i == 5:
        k +=1
    elif i==7:
        j += 1

if J == 1 & K == 2:
    print("YES")
else:
    print("NO")

Submission status: Runtime Error

Solution code:
xs = map(int, raw_input())
print 'YES' if sorted(xs) == [5, 5, 7] else 'NO'

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
M=10**9+7;F=[pow(X,M-2,M)for X in range(2*10**5)];H,W,A,B=map(int,input().split());Z=C=1
for I in range(H-1):Z=C=C*(W+H-B-2-I)*F[I+1]%M
for I in range(1,H-A):C=C*(B-1+I)*F[I]*(H-I)*F[W+H-B-1-I]%M;Z=(Z+C)%M
print(Z)

Submission status: Runtime Error

Solution code:
n,l=map(int,raw_input().split())
a=[]
for i in range(n):
    a.append(raw_input())
a.sort()
print ''.join(a)

Submission status: Runtime Error

Solution code:
# coding: utf-8
# Here your code !
N, K = map(int, raw_input().split(" "))
D = map(int, raw_input().split(" "))
nums = range(0,10)
#好きな数字を昇順のリストに整理
like = list(set(nums).difference(set(D)))
like.sort()
print like
#数字を上から1文字づつ処理
grade = len(str(N))-1
ans = 0
flag = False #上の桁で嫌いな数字があるか
for i in str(N):
    if int(i) == 9 and 9 not in like and not flag:
        ans += 10**(grade+1)
        flag = True
    elif int(i) not in like and not flag:
        for j in like:
            if j > int(i):
                ans += j*10**(grade)
                flag = True
                break
    elif flag:
        ans += like[0]*10**(grade)
    grade -= 1
if ans < N:
    ans = N
print ans

Submission status: Runtime Error

Solution code:
#!/usr/bin/env python2
#encoding: UTF-8

# To change this license header, choose License Headers in Project Properties.
# To change this template file, choose Tools | Templates
# and open the template in the editor.
import math
line=raw_input().rstrip().split(' ')
N=int(line[0])
L=int(line[1])
listo=[]
for i in range(L):
    listo.append(raw_input().rstrip())
listi=sorted(listo)
listni=''
for i in range(L):
    listni+=listi[i]
print listni

Submission status: Runtime Error

Solution code:
n,l = map(int,raw_input().split())
s = []
for i in xrange(n) :
    s.append(raw_input())
s.sort()
t = ''
for j in xrange(n) :
    t += s[j]
print t

Submission status: Runtime Error

Solution code:
n, _ = input().split(' ')
o = set([d for d in range(10)])
d = set([int(t) for t in input().split(' ')])
o = list(o.difference(d))
o.sort()
ans = []
for t in n:
    t = int(t)
    for tt in o:
        if tt >= t:
            ans.append(tt)
            break
    else:
        ans.append(o[0])

if int(''.join(map(str,ans))) < int(n):
    ans.insert(0, o[0] if o[0] != 0 else o[1])

print(''.join(map(str,ans)))

Submission status: Runtime Error

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

b = []
for i in range(N):
    n = 0
    for j in range(L):
        n = (n*100) + ord( a[i][j])-96
    b.append(n)
ind = b.index(max(b))
print('%s' % str(a[ind]))

Submission status: Runtime Error

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

Submission status: Runtime Error

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