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

print(a)

if int(''.join(a)) == 775:
	print("YES")
elif int(''.join(a)) == 757:
	print("YES")
elif int(''.join(a)) == 577:
	print("YES")
	
else:
	print(NO)

Submission status: Runtime Error

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

print(a)

if int(''.join(a)) == 775:
	print("YES")
elif int(''.join(a)) == 757:
	print("YES")
elif int(''.join(a)) == 577:
	print("YES")
	
else:
	print(NO)

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
user_input = map(int, input().split())
five = 0
seven = 0
for i in len(user_input):
    if user_input[i] == 5:
        five += 1
    elif user_input[i] == 7:
        seven += 1

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

Submission status: Runtime Error

Solution code:
user_input = int(input().split())
five = 0
seven = 0
for i in len(user_input):
    if user_input[i] == 5:
        five += 1
    elif user_input[i] == 7:
        seven += 1

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

Submission status: Runtime Error

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

"""
Lの文字列N個(s1-sN)
N個の文字列を辞書順にしたあと，くっつけて出力する
"""


def main():
    l, n = map(int, input().split())
    input_list = []

    for i in range(n):
        input_list.append(input()) 

    result_list = sorted(input_list)
    print("".join(result_list))


if __name__ == "__main__":
    main()

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
a=input().split(" ")
list1=[]
c=""


for i in range(int(a[0])):
	b=input()
	list1.append(b)

list2=sorted(list1)

for j in range(int(a[0])):
    c=c+list2[j]

print(c)

Submission status: Runtime Error

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

Iloha = []

for i in range(N):
    S = input()
    Iloha.append(S)

Iloha.sort()

print("".join(Iloha))

Submission status: Runtime Error

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

x = [a,b,c]
def No():
  print("NO")

if sum(x) == 17:
  if x.count(5) == 2:
    if x.index(7) = 7:
      print("YES")
    else:
      No()
  else:
    No()
else:
  No()

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
from functools import reduce
from operator import mul

n = int(input())
s = reduce(mul, map(int, input().split(' ')))
print('YES' if s == 175 else '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:
list = input().split()
ans = list[0] * list[1] * list[2]

if ans == 5*5*7:
  Print('YES')
else:
  Print('NO)

Submission status: Runtime Error

Solution code:
list = input().split()
ans = input[0] * input[1] * input[2]

if ans == 5*5*7:
  Print('YES')
else:
  Print('NO)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
List = list(map(int, input().split()))
if sum(list) == 17 and List.count(5) == 2:
    print('YES')
else:
    print('NO')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
K, N = map(int, input().split())
D = list(map(int, input().split()))
D.sort()
flag = False
while True:
  K_str = str(K)
  for i in range(len(K_str)):
    for j in range(len(D)):
      if K_str[len(K_str)-1-i]==str(D[j]):
        flag=False
        break
      if j==len(D)-1:
        flag = True

    if not flag:
      break

  if flag:
    break
  K+=1

print(K)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
A B C = list(map(int, input().split()))
a = A B C
print("Yes" if a[0]== a[2] == 5 and a[1] == 7 else "No")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n,k = input().split()
hate_num = input().split()
num = int(n)
boo = False
while(boo == False):
  dec = []
  for i in str(num):
    dec.append(i not in hate_num)
    
  if(False not in dec):
    boo = True
  num += 1
    
print(num-1)

Submission status: Runtime Error

Solution code:
 

Copy
Copy
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, tan, asin, acos, atan, radians, degrees, log2
from itertools import accumulate, permutations, combinations, combinations_with_replacement, product, groupby
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from bisect import bisect, bisect_left
from fractions import gcd
from heapq import heappush, heappop
from functools import reduce
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
def ZIP(n): return zip(*(MAP() for _ in range(n)))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7
 
A = LIST()
if A.sort() == [5, 5, 7]:
	print("YES")
else:
	print("NO")

Submission status: Runtime Error

Solution code:

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

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

Submission status: Runtime Error

Solution code:
if int(A)*int(B)*int(C)==5*7*7:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
def forgive(num):
    for i in range(10):
        if ((num + i) % 10) in unforgiven:
            continue
        else:
            return num + i


N, K = map(int, input().split())
unforgiven = list(map(int, input().split()))
unforgiven.sort()

price = [int(x) for x in str(N)]
purchase = 0
dig = 0
for num in reversed(price):
    purchase += forgive(num) * (10 ** dig)
    dig += 1

print(purchase)

Submission status: Runtime Error

Solution code:
import itertools
NK = input().split()
N = NK[0]
K = int(NK[1])
 
d = input().split()
D = [int[s] for s in d]
 
Da = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
 
for i in D:
    Da.remove(i)
Da_str = [str(j) for j in Da]
 
a_1 = [''.join(j) for j in itertools.product(Da_str, repeat=len(N))]
a_2 = [''.join(j) for j in itertools.product(Da_str, repeat=len(N)+1)]
a = a_1 + a_2
nu = [int(k) for k in a]
 
for i in nu:
    if i >= int(N):
        print(i)
        break

Submission status: Runtime Error

Solution code:
import itertools
NK = input().split()
N = NK[0]
K = int(NK[1])
 
d = input().split()
D = [int[s] for s in d]
 
Da = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
 
for i in range(len(D)):
    Da.remove(D[i])
Da_str = [str(j) for j in Da]

a_1 = [''.join(j) for j in itertools.product(b_st, repeat=len(N))]
a_2 = [''.join(j) for j in itertools.product(b_st, repeat=len(N)+1)]
a = a_1 + a_2
nu = [int(k) for k in a]

 
for i in nu:
    if i >= N:
        print(i)
        break

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:
A, B, C = map(int, input().split())

five = 0;
seven = 0;

if A == 5:
    five +=1
elif A == 7:
        seven +=1

if B == 5:
    five +=1
elif B == 7:
        seven +=1

if C == 5:
    five +=1
elif C == 7:
        seven +=1

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

Submission status: Runtime Error

Solution code:
five = 0;
seven = 0;

if A == 5:
    five +=1
elif A == 7:
        seven +=1

if B == 5:
    five +=1
elif B == 7:
        seven +=1

if C == 5:
    five +=1
elif C == 7:
        seven +=1

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

Submission status: Runtime Error

Solution code:
int five = 0;
int seven = 0;

if A == 5:
    five ++
elif A == 7:
        sevent ++

if B == 5:
    five ++
elif B == 7:
        sevent ++

if C == 5:
    five ++
elif C == 7:
        sevent ++

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

Submission status: Runtime Error

Solution code:
int five = 0;
int seven = 0;

if A == 5
    five ++;

    else if A == 7
        sevent ++;

if B == 5
    five ++;

    else if B == 7
        sevent ++;

if C == 5
    five ++;

    else if C == 7
        sevent ++;

if five == 2 and seven == 1
    print 'YES';
    else print 'NO';

Submission status: Runtime Error

Solution code:
iroha = list(int(input()))

ans = [[5, 5, 7], [5, 7, 5], [7, 5, 5]]

if iroha in ans:
  print("YES")
else:
  print("NO")

Submission status: Runtime Error

Solution code:
def canConstructHaiku(arr):
	arr.sort()
 	if arr[0] == 5 and arr[1] == 5 and arr[2] == 7:
    	return True
    return False

arr = list(map(int, input().split()))
print("YES" if canConstructHaiku(arr) else "NO")

Submission status: Runtime Error

Solution code:
Number=list(map(int,input().split()))
print(Number)
if Number.count(5)==2 and Number.count(7)==1:
    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:
  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())
s = sorted([input() for i in range(n)])
print(*s, sep="")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s=input()
cnt=int(s[0])
l=[]
for i in range(cnt):
  l.append(input())
l=sorted(l)
print(''.join(l))

Submission status: Runtime Error

Solution code:
cnt=int(input()[0])
l=[]
for i in range(cnt):
  l.append(input())
l=sorted(l)
print(''.join(l))

Submission status: Runtime Error

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

count7=0

if a==7:
    count7=count7+1
if b==7:
    count7=count7+1
if c==7:
    count7=count7+1

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

Submission status: Runtime Error

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

total = 0
tmp1, tmp2 = 1, 1		# 初期化
tmp3, tmp4 = 1, 1		# 初期化
for i in range(B,W,1):
  conv1, conv2 = 0, 0	# 初期化
  if i == B:
    for j in range(i):
      tmp1 *= i+(H-A-1)-j
    tmp1 %= (10**9+7)
    for j in range(i, 0, -1):
      tmp2 *= j
    tmp2 %= (10**9+7)
  else:
    tmp1 *= i+(H-A-1)
    tmp1 %= (10**9+7)
    tmp2 *= i
    tmp2 %= (10**9+7)
  conv1 = tmp1/tmp2
  
  if i == B:
    for j in range(W-1-i):
      tmp3 *= (A-1)+(W-1-i)-j
    tmp3 %= (10**9+7)
    for j in range(W-1-i, 0, -1):
      tmp4 *= j
    tmp4 %= (10**9+7)
  else:
    tmp3 *= W-1-i+1
    tmp3 %= (10**9+7)
    tmp4 *= (A-1)+(W-1-i)+1
    tmp4 %= (10**9+7)
  conv2 = tmp3/tmp4
  total += conv1*conv2
print(int(total))

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

Submission status: Runtime Error

Solution code:
s = input().split()
s5 = s.count("5")
s7 = s.count("7")

if s5 == 2:
  if s7 == 1:
    print("YES")
    else:
      print("NO")
else:
    print("NO")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
if sorted(map(int, input().split())) == [5, 5, 7]:
  return 'Yes'
else:
  return 'No'

Submission status: Runtime Error

Solution code:
A, B, C = map(int, input().split())
list = [A, B, C]
if list.sort() == [5, 5, 7]:
  return 'Yes'
else:
  return 'No'

Submission status: Runtime Error

Solution code:
list = [A, B, C]
if list.sort() == [5, 5, 7]:
  return 'Yes'
else:
  return 'No'

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import asyncio


async def main(input: list):
    possible575 = sorted(input) == [5, 5, 7]
    print(possible575)


input = list(map(int, input().split()))
asyncio.run(main(input))

Submission status: Runtime Error

Solution code:
s = input().split
s = s[0]+s[1]+s[2]

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

Submission status: Runtime Error

Solution code:
list=[int(i) for i in input().split()]
list1=sorted(list)
if list1=[5,5,7]:
  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:
    print("YES")
elif A=5 and C=5 and B=7:
    print("YES")
elif C=5 and B=5 and A=7:
    print("YES")
else:
    print("NO")

Submission status: Runtime Error

Solution code:
A,B,C = map(int,input().split())
if (A = 5 or A =7 )and ( B = 5 or B =7 ) and( C = 5 or C = 7 ) and A+B+C=17:
    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:
    print("NO")

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())
C = int(input())
A = [A, B, C]

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

Submission status: Runtime Error

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

if 5 in abc and 7 in abc and abc.count(7)==1:
  print('YES')
else 
  print('NOT')

Submission status: Runtime Error

Solution code:
num_1 = int(input())
num_2 = int(input())
num_3 = int(input())

elif num_1 == 5:
	elif nmu_2 == 5 and num_3 == 7 or nmu_2 == 7 and num_3 == 5:
  		print('Yes')
    else 
    	print('NO')
else:
    	elif nmu_2 == 5 and num_3 == 7 or nmu_2 == 7 and num_3 == 5:
  		print('Yes')
    else 
    	print('NO')

Submission status: Runtime Error

Solution code:
n = int(input())
print(sum(range(1, n + 1)))

Submission status: Runtime Error

Solution code:
n = int(input())
print (sum(range(1, n + 1)))

Submission status: Runtime Error

Solution code:
n = int(input())
print sum(range(1, n + 1))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
A,B,C=map(int,input().split())
list=[A,B,C]
c=list(count(5))
t=list(count(7))
print("YES" if c=2 && t=1 else "NO")

Submission status: Runtime Error

Solution code:
num=int(input())
list_num=num.split()
list_num.sort()
list_num
if list_num==[5,5,7]:
  print(Yes)
  
else:
  print(No)

Submission status: Runtime Error

Solution code:
num=int(input())
list_num=list(num)
list_num.sort()
list_num
if list_num==[5,5,7]:
  print(Yes)
  
else:
  print(No)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
array = list(map(int, input().split()))                                                        
  
sort_array = array.sort()
 
for i in range(len(array)):
    if i == 0 and sort_array[i] == 5:
        continue
    elif  i==0 and not(sort_array[i]) == 5:
        print("No")
        break
 
    if i==1 and sort_array[i] == 5:
        continue
    elif  i==1 and not(sort_array[i]) == 5:
        print("No")
        break
 
 
    if i==2 and sort_array[i] == 7:
        print("YES")
    elif  i==2  and not(sort_array[i]) == 7:
        print("NO")
        break

Submission status: Runtime Error

Solution code:
array = list(map(int, input().split()))                                                        
  
sort_array = array.sort()
 
for i in range(len(array)):
    if i == 0 and array[i] == 5:
        continue
    elif  i==0 and not(array[i]) == 5:
        print("No")
        break
 
    if i==1 and array[i] == 5:
        continue
    elif  i==1 and not(array[i]) == 5:
        print("No")
        break
 
 
    if i==2 and array[i] == 7:
        print("Yes")
    elif  i==2  and not(array[i]) == 7:
        print("No")
        break
~

Submission status: Runtime Error

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

S.sort()

s = ""
for i in range(N):
    s += S[i]

print(s)

Submission status: Runtime Error

Solution code:
lst=list(map(int,input().split()))
if 5 in lst:
  lst.remove(5)
else:
    ans='No'
if 7 in lst:
  lst.remove(7)
else:
    ans='No'
if 7 in lst:
  ans='Yes'
print(ans)

Submission status: Runtime Error

Solution code:
def ispossible(list1):
  if list1.count("5") == 2 and list1.count("7") == 1:
    return "YES"
  else:
    return "NO"

list1 = input().split()
print(isposible(list1))

Submission status: Runtime Error

Solution code:
def ispossible(list1):
  if list1.count("5") == 2 and list1.count("7") == 1:
    return "YES"
  else:
    return "NO"

list1 = input().split()
print(ispposible(list1))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a=input()
a=int(a)
b=input()
b=int(b)
c=input()
c=int(c)
if(a==5 and b==7 and c==5):
    print("YES")
elif(a==5 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 = input()
b = input()
c = input()
if (a + b + c)==(5+7+5):
  print("YES")
else:
  print("NO")

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
# スペース区切りの整数の入力
N, K = map(int, input().split())
# 文字列用のリスト　インプットをブランクで区切りリスト化
k = input()
s = [int(j) for j in k.split(" ")]
valIn = 0
# Nの桁毎の分解
def digit(i):
    if i > 0:
        return digit(i//10) + [i%10]
    else:
        return []

def irohacheck(n):
	global valIn
	valIn = 0
	# 分解した数値をリストにして格納
	num = digit(n)
	# num内の数字がsに含まれる場合には、valInをインクリメント
	for i in range(len(num)):
		if s.count(num[i])>0:
			valIn+=1

irohacheck(N)
while(valIn != 0):
	N += 1
	irohacheck(N)
print(N)

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

s = a + b + c

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

Submission status: Runtime Error

Solution code:
N = int(input())
if N == 557 or N == 575 or N == 755:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
A = input()
B = input()
C = input()
X = A + B + C
if X == "557" or X == "575" or X == "755":
    print("YES")
else: print("NO")

Submission status: Runtime Error

Solution code:
list = []
n = 3
for i in range (0,n):
    ele = int(input())
    list.append(ele)
F = int(list.count(5))
S = int(list.count(7))
if (F==2):
    if(S==1):
        print("Yes")
    else:
        print("No")

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:
    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,b,c= input().split()
if len(a) == 7:
  if len (b) ==5 and len(c) == 5:
    print "YES"
  else:
    print "NO"
else:
  if len(b) =! 7 and len(c)=!7:
    print "NO"
  else:
    if len(b) ==7 and len (c) ==5:
      print "YES"
    else:
      if len(b) ==5 and len(c) ==7:
        print "YES"
      else:
        print "NO"

Submission status: Runtime Error

Solution code:
# C - こだわり者いろはちゃん
# https://atcoder.jp/contests/abc042/tasks/arc058_a

# 入力 1
# 1000 8
# 1 3 4 5 6 7 8 9

N,K = input().split()
D = input().split()

one_to_ten = ["0","1","2","3","4","5","6","7","8","9","10"]
can_use = sorted(list(set(one_to_ten) - set(D)))

print(can_use)
tmp = []

for n in N:
    i = 0
    if n in can_use:
        tmp.append(n)
    else :
        tmp.append(can_use[0])
    i = i + 1
    
print("".join(tmp))

Submission status: Runtime Error

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

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('A'))
B=int(input('B'))
C=int(input('C'))

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, 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 = int(input())
b = int(input())
c = int(input())

if a + b + c == 17:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
a = int(input("ここに数値を入力してください:"))
b = int(input("ここに数値を入力してください:"))
c = int(input("ここに数値を入力してください:"))

if a + b + c == 17:
    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*b*c=175:
    print(YES)
else:
    print(NO)

Submission status: Runtime Error

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

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:
N, L = map(int, input().split())
S = [input() for i in range(N)]
s = sorted(S)
print(*s, sep='')

Submission status: Runtime Error

Solution code:
list = list(map(int(input())))
print(list)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

p = sorted(P)
ppp = "".join(map(str, p))
print(ppp)

Submission status: Runtime Error

Solution code:
A, B, 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,b,c = map(int,input().split())
coutn5 = [x for x in [a,b,c] if x==5]
coutn7 = [x for x in [a,b,c] if x==7]

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

Submission status: Runtime Error

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

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())
sam = []

for i in range(n):
    sam.append(input())

sam.sort()

print("".join(sam))

Submission status: Runtime Error

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

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

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

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8-*-
strs = []
n,k = map(int,input().split())
hates = list(input().split())

give = n

while(True):
  stri = str(give)
  for hate in hates:
    if hate in stri:
      give = give + 1
      break
    else:
      print(give)
      exit()

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8-*-
strs = []
n,k = map(int,input().split())
hates = list(input().split())

give = n

while(True):
  stri = str(give)
  for hate in hates:
    if hate in stri:
      give = give + 1
      break;
    else:
      print(give)
      exit()

Submission status: Runtime Error

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

n=[str(N)[i] for i in range(len(str(N)))]
#print(n)
for i in range(N,10*N+1):
  flag=True
  for j in range(len(str(i))):
    if(int(str(i)[j]) in D):
      flag=False
  if(flag==True):
    ans=i
    break
print(ans)

Submission status: Runtime Error

Solution code:
line1 = input().split(' ')
N = line1[0]
D = input().split(' ')
# print(D)
i = -1
while i > -len(N)-1:
    # print("here")
    while (N[i] in D):
        j = abs(i)
        k = (10**(j-1))
        N = str(int(N)+k)
        # print(N)
    i -= 1
print(N)

Submission status: Runtime Error

Solution code:

def haiku(a,b,c):
  if [a,b,c]==[5,5,7] or [a,b,c]==[5,7,5] or [a,b,c]==[7,5,5]:
      print('Yes')
  else:
      print('No')
      
  
A = int(input('1つ目の数を入力してください：'))
B = int(input('2つ目の数を入力してください：'))
C = int(input('3つ目の数を入力してください：'))

haiku(A,B,C)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
value = input()
if value.count(5) ==2:
  if value.count(7) ==1:
    print('Yes')
  else:
    print('No')
else:
  print('No')

Submission status: Runtime Error

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

sort(A)

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s=list(input())
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: Runtime Error

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

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