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:
sen = [A,B,C]
sen = sen.sort()
if sen == [5,5,7]:
	print("YES")
else:
	print("NO")

Submission status: Runtime Error

Solution code:
sen = [A,B,C]
sen = sen.sort()
if sen = [5,5,7]:
	print("YES")
else:
	print("NO")

Submission status: Runtime Error

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

for i in range(N, 10*N+1):
    num = list(map(int,str(i)))
    match = list(set(num) & set(dislike))
    if len(match)==0:
        print(i)
        break

Submission status: Runtime Error

Solution code:
num = list(map(int,input().split()))
if num.count(5) == 2 and num.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:
X, Y, Z = map(int, input().split())

num_5 = 0
num_7 = 0

if X == 5:
  num_5 += 1
if Y == 5:
  num_5 += 1
if Z == 5:
  num_5 += 1
  
if X == 7:
  num_7 += 1
if Y == 7:
  num_7 += 1
if Z == 7:
  num_7 += 1

if num_5 == 2 && num_7 == 1:
    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.sort()
print("".join(s))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
from itertools import permutations

Num = [int(n) for n in input().rstrip().split()]

D = [int(n) for n in input().rstrip().split()]

for i in range(Num[0],10000):
    if len(set([str(n) for n in D]) & set(str(i))) == 0:
        print(i)
        break

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
num  = [int(n)] for n in input().rstrip().split()]

if num.count(5) == 2 and num.count(7) == 1:
    print("YES")

else:
    print("NO")

Submission status: Runtime Error

Solution code:
l =input().split()
a=0
b=0
for i in range(0,2):
  if len(i) = 5:
    a = a+1
  if len(i) = 7:
    b = b+1
if a=2 and b=1:
  print("YES")
else:
  print("NO")

Submission status: Runtime Error

Solution code:
l =input().split()
for i in range(0,2):
  a=0
  b=0
  if len(i) = 5:
    a = a+1
  if len(i) = 7:
    b = b+1
if a=2 and b=1:
  print("YES")
else:
  print("NO")

Submission status: Runtime Error

Solution code:
l =input().split()
for i in range(len(l)-1):
  a=0
  b=0
  if len(i) = 5:
    a = a+1
  if len(i) = 7:
    b = b+1
if a=2 and b=1:
  print("YES")
else:
  print("NO")

Submission status: Runtime Error

Solution code:
a,b,c =input().split()
if len(a)*len(b)*len(c) =175:
  print("YES")
else:
  print("NO")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

n,l=map(int,input().split())

s =[str(input()) for i in range(n)]

s.sort()

print(*s,sep="")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = int(input())
if a == 17 :
  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()
result = ''.join(s)
print(result)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N,L=map(int,input().split())
s =[]
for i in range(0,L):
    s.append(str(input()))
s.sort()
ans = ""
for word in s:
    ans = ans+word
print(ans)

Submission status: Runtime Error

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

arr = [A, B, C]
fives = 0
sevens = 0

for num in arr:
    if num == 5:
        fives += 1
    if num == 7:
        sevens += 1

if fives == 2 and sevens == 1:
    print("YES")
else:
    print("NO")

Submission status: Runtime Error

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

arr = [A, B, C]
fives = 0
sevens = 0

for num in arr:
    if num == 5:
        fives += 1
    if num == 7:
        sevens += 1

if fives == 2 and sevens == 1:
    print("YES")
else:
    print("NO")

Submission status: Runtime Error

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

# A = 5
# B = 7
# C = 5
arr = [A, B, C]
fives = 0
sevens = 0

for num in arr:
    if num == 5:
        fives += 1
    if num == 7:
        sevens += 1

if fives == 2 and sevens == 1:
    print("YES")
else:
    print("NO")

Submission status: Runtime Error

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

arr = [A, B, C]
fives = 0
sevens = 0

for num in arr:
    if num == 5:
        fives += 1
    if num == 7:
        sevens += 1

if fives == 2 and sevens == 1:
    print("YES")
else:
    print("NO")

Submission status: Runtime Error

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

arr = [A, B, C]
fives = 0
sevens = 0

for num in arr:
    if num == 5:
        fives += 1
    if num == 7:
        sevens += 1

if fives == 2 and sevens == 1:
    print("YES")
else:
    print("NO")

Submission status: Runtime Error

Solution code:
def sortadd():
    num_lists = input().split(" ");
    N=int(num_lists[0]);
    L=int(num_lists[1]);
    
    str_lists = [];
    
    for _ in range(N):
        str_lists.append(input());

    str_lists.sort();
    str_sum = ''.join(str_lists)
    
    print(str_sum);

sortadd();

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())
c = int(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:
a = int(input())
b = int(input())
c = int(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:
a = int(input())
b = int(input())
c = int(input())
d = [a,b,c]
d.sort()

if d[a] == 5 and d[b] == 5 and d[c] == 7:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())
c = int(input())
d = [a,b,c]
d.sort()

if d[a] == 5 and d[b] == 7 and d[c] == 7:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
a,b,c=map(int,input().split())
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,b,c=map(int,input().split())
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:
N, L= map(int,input().split())
alldata = sorted([input() for i in range(N)])
print("".join(data))

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
line = map(int, input().split())

ans = "YES" if line.count(5) == 2 and line.count(7) == 1 else "NO"

print(ans)

Submission status: Runtime Error

Solution code:
A, B, C = map(int, input().split())
five = 0
seven = 0
check = [A, b, C]
for s in check:
    if s == 5:
        five += 1
    if s == 7:
        seven += 1
if five == 2 and seven == 1:
    print('YES')
else:
    print('NO')

Submission status: Runtime Error

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

a.sort()

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
A,B,C = input().split()
if A*B*C/145==1:
  print("YES")
else:
  print("NO")

Submission status: Runtime Error

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

if B < A:
    A, B = B, A

if C < A:
    A ,C = C, A

if C < B:
    B, C = C, B

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
a = input()
if a.count(5)==2 and a.count(7)==1:
    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")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N, K = map(int, input().split(" "))
Ds = set(map(str, input().split(" ")))
for i in range(N, 10000):
    if (set(str(i)) & set(Ds)) == set():
        print(i)
        break

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import sys

def main(arg_list):
    if(len(arg_list == 3) and arg_list.count('5')==2 and arg_list.count('7') == 1):
        return "YES"
    return "NO"

if __name__ == "__main__":
    main(sys.argv)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

if (A==5 or A==7)and (B==5 or B==7)and(C==5 or C==7) :
    if A+B+C==17:
        print("Yes")
else :
    print("NO")

Submission status: Runtime Error

Solution code:
s = input().split() #s_1 s_2を分割して取得し、sに値を入れる
five = 0
seven = 0
for i range(3):
    if s[i] == '5':
        five += 1
    if s[i] == '7':
        seven += 1
        
if five == 2 and seven == 1:
    print('YES')
else:
    print('NO')

Submission status: Runtime Error

Solution code:
#wlist = list(map(int,input().split()))
nlist = list(input().split())
if nlist.couunt("5") ==2 and nlist.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==5 & c==5):
        print('YES')
    else:
        print('NO')
elif(b==7):
    if(a==5 & c==5):
        print('YES')
    else:
        print('NO')
elif(c==7):
    if(b==5 & a==5):
        print('YES')
    else:
        print('NO')
else
    print('NO')

Submission status: Runtime Error

Solution code:
h,w,a,b=map(int,input().split())
mod=10**9+7

n=h+w+1
fc,inv=[1]*n,[1]*n
for i in range(1,n):
    fc[i]=i*fc[i-1]%mod
inv[n-1]=pow(fc[n-1],mod-2,mod)
for i in range(n-1,0,-1):
    inv[i-1]=inv[i]*i%mod
f=lambda a,b:fc[a+b]*inv[a]*inv[b]%mod

v=0
for i in range(b,w):
    v+=f(h-a-1,i)*f(a-1,w-i-1)%mod
print(v%mod)

Submission status: Runtime Error

Solution code:
n = int(input())
print((1+n)*n/2)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
#最初に入力される情報を整理する
str_input_list = input().rstrip().split(' ')

int_input_list = []
for a in str_input_list:
    int_input_list.append(int(a))

length = int_input_list[0]
amount = int_input_list[1]

#文字列を受け取りリストに格納
mojiretu_list = []
for a in range(amount):
    mojiretu_list.append(input())


#文字列を小さい順に並べ、結合
sorted_list = sorted(mojiretu_list)
min_mojiretu = ''
for a in range(amount):
    min_mojiretu += sorted_list[a]

#出力
print(min_mojiretu)
print()

Submission status: Runtime Error

Solution code:
mondai = input(),split()
if mondai.count('5')==2 and mondai.count('7')==1:print('Yes')
else:print('No')

Submission status: Runtime Error

Solution code:
N, K = map(int,input().split())
L = list(map(int,input().split()))
for i in range(N,100000):
    flag = 0
    for x in str(i):
        if int(x) in L:
            flag = 1
    if flag == 0:
        print(i)
        exit()

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
L=amp(int,input().split())
table=[5,5,7]
L=soretd(L)
if table == L:
  print("YES")
else:
  print("NO")

Submission status: Runtime Error

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

sn = []

for _ in range(1, n+1):
  sn.append(input())
  
sn = sorted(sn)

sn = ''.join(sn)

print(sn)

Submission status: Runtime Error

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

sn = []

for _ in range(n+1):
  sn.append(input())
  
sn = sorted(sn)
sn = ''.join(sn)

print(sn)

Submission status: Runtime Error

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

sn = []

for _ in range(n):
  sn.append(input())
  
sn = sorted(sn)

sn = ''.join(sn)

print(sn)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N, L = map(int, input().split())
 
#標準入力からリストの作成
list = []
for _ in range(N):
 i = str(input())
 list.append(i)

#リストのソート
list_a = sorted(list)
 
#リストの結合
mojiretu = ''.join(list_a)
 
print(mojiretu)

Submission status: Runtime Error

Solution code:
N, L = map(int, input().split())
 
#標準入力からリストの作成
list = []
for _ in range(2, N+2):
 i = input()
 list.append(i)
 
#リストの結合
mojiretu = ''.join(list)
 
print(mojiretu)

Submission status: Runtime Error

Solution code:
a,b,c = map(int, input().split())
flag = 0
if a == 7 & b,c == 5:
 flag = 1
elif b == 7 & a,c == 5:
 flag = 1
elif c == 7 & a,b == 5:
 flag = 1
else:
 flag = 0
if flag = 0:
 print('No')
else:
 print('YES')

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
a, b, c = map(int, input().split())
five = 0;
if a == 5:
  five = five + 1;
elif a == 7:
  seven = seven + 1;
if b == 5:
  five = five + 1;
elif b == 7:
  seven = seven + 1;
if c == 5:
  five = five + 1;
elif c == 7:
  seven = seven + 1;
if five == 2 and seven == 1:
  print("YES")
else:
  print("NO")

Submission status: Runtime Error

Solution code:
H, W, A, B = map(int, input().split())
answer = 0
mod = 1000000007
factorial = [1]
for n in range(1, H+W):
    factorial.append(factorial[n-1]*n%mod)
def power(x, y):
    if y == 0:
        return 1
    elif y == 1:
        return x % mod
    elif y % 2 == 0:
        return power(x, y/2)**2%mod
    else:
        return power(x, y/2)**2*x%mod

inverseFactorial = [0] * (H+W)
inverseFactorial[H+W-1] = power(factorial[H+W-1], mod-2)
for n in range(H+W-2, -1, -1):
    inverseFactorial[n] = inverseFactorial[n+1] * (n+1) % mod
def combi(n, m):
    return factorial[n] * inverseFactorial[m] *inverseFactorial[n-m]%mod

for i in range(B+1, W+1):
    answer = (answer + combi(H-A-2+i, i-1)*combi(A+W-i-1,W-i)) % mod
print(answer)

Submission status: Runtime Error

Solution code:
A=sorted([int(i) for i in input().split()])
if A==[5,5,7]:
  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="".join(sorted(s))
print(S)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n,l=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())
s=[input() for i in range(n)]
s.sort
print("".join(s))

Submission status: Runtime Error

Solution code:
L, N = list(map(int, input().split()))
S = [input() for i in range(N)]
S.sort()
ans = "";
for j in range(N):
    ans += S[j]
print(ans)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
flag = False
a = input().split(' ')
for i in range(3):
  a[i]=int(a[i])
while True:
  for i in range(3):
    if a[i] != 5 and a[i] != 7:
      print('NO')
      frag = True
      break
  if frag == True:
    print(2)
    break
  if a[0] + a[1] + a[2] == 17:
    print('YES')
    break
  else:
    print('NO')
    break

Submission status: Runtime Error

Solution code:
a = input().split(' ')
while True:
  for i in renge(3):
    if a[i] != 5 or a[i] != 7:
      print('NO')
      break
  if a[0] + a[1] + a[2] == 17:
    print('YES')
    break
  print('NO')
  break

Submission status: Runtime Error

Solution code:
n, k = map(int, input().split())
a = [int(x) for x in input().split()]
while True:
    s = str(n)
    poss = False
    for i in s:
        if int(i) in a:
            poss = True
            break
    if not poss:
        print(n)
        exit(0)
    n += 1

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s=input()
print('YES' if s=='5 5 7'||s=='5 7 5'||s=='7 5 5' else 'NO')

Submission status: Runtime Error

Solution code:
print(["NO","YES"][eval(input().replace(" ","*"))])

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
A,B,C=map(int,input().split())
S =set("ABC")
T =set("557")
if S & T = ("5","5","7"):
  print("YES")
else:
  print("NO")

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
A,B,C=map(int,input().split())
S =[A,B,C]
T =[5,5,7]
if S = T:
  print("YES")
else:
  print("NO")

Submission status: Runtime Error

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

ans1 = 0
ans2 = 0

for i in range(len(A)):
    if A[i] == 5:
        ans1 += 1
    if A[i] == 7:
        ans2 += 1

if ans1 == 2 and ans2 == 1:
    print('YES')
else:
    print('NO')

Submission status: Runtime Error

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

ans1 = 0
ans2 = 0

for i in range(len(A)):
    if A[i] == 5:
        ans1 += 1
    if A[i] == 7:
        ans2 += 1

if ans1 == 2 and ans2 == 1:
    print('YES')
else:
    print("NO")

Submission status: Runtime Error

Solution code:
a=input()
b=input()
c=input()
w=[a,b,c]
e=w.count('5')
if '5' and '7' not in w:
    print ('NO')
elif e==2:
    print ('YES')
else:
    print ('NO')

Submission status: Runtime Error

Solution code:
import sys

def solve(a, b, c):
    # Uncomment the following if you want to check the input.
    # print('a =', a)
    # print('b =', b)
    # print('c =', c)
    def I(a,b,c):
    w=[a,b,c]
    if 5 and 7 not in w:
        print ('NO')
    e=w.count(5)
    if e==2:
        print ('YES')
    else:
        print ('NO')


def readQuestion():
    ws = sys.stdin.readline().strip().split()
    a = int(ws[0])
    b = int(ws[1])
    c = int(ws[2])
    return (a, b, c,)

def main():
    solve(*readQuestion())

# Uncomment before submission
    main()

Submission status: Runtime Error

Solution code:
import sys

def solve(a, b, c):
    # Uncomment the following if you want to check the input.
    # print('a =', a)
    # print('b =', b)
    # print('c =', c)
    w=[a,b,c]
    if 5 and 7 not in w:
        return ('NO')
    e=w.count(5)
    if e==2:
        return ('YES')
    else:
        return ('NO')


def readQuestion():
    ws = sys.stdin.readline().strip().split()
    a = int(ws[0])
    b = int(ws[1])
    c = int(ws[2])
    return (a, b, c,)

def main():
    solve(*readQuestion())

# Uncomment before submission
	main()

Submission status: Runtime Error

Solution code:
import sys

def solve(a, b, c):
    # Uncomment the following if you want to check the input.
    # print('a =', a)
    # print('b =', b)
    # print('c =', c)
    w=[a,b,c]
    if 5 and 7 not in w:
        return ('NO')
    e=w.count(5)
    if e==2:
        return ('YES')
    else:
        return ('NO')


def readQuestion():
    ws = sys.stdin.readline().strip().split()
    a = int(ws[0])
    b = int(ws[1])
    c = int(ws[2])
    return (a, b, c,)

def main():
    solve(*readQuestion())

# Uncomment before submission
 main()

Submission status: Runtime Error

Solution code:
def solve(a,b,c):
    li = [a,b,c]
    cf = 0
    cs = 0
    for i in li:
        if i == 5:
            cf +=1
        if i==7:
            cs +=1
    if cf == 2 and cs ==1:
        return YES
    else:
        return NO
            
def readQuestion():
    line = sys.stdin.readline().rstrip()
    [str_a, str_b, str_c] = line.split(' ')
    return (int(str_a), int(str_b), int(str_c))

def main():
    a, b, c = readQuestion()
    answer = solve(a, b, c)
    print(answer)
    
if __name__ == '__main__':
    main()

Submission status: Runtime Error

Solution code:
l = input.split()
if l.count('5')==2 and '7' in l:
  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))):
  if(a+B+c==17):
    print("YES")
  else:
    print("NO")
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))):
  ifa+B+c==17:
    print("YES")
  else:
    print("NO")
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))):
  ifa+B+c==17:
    print(YES)
  else:
    print(NO)
else:
  print(NO)

Submission status: Runtime Error

Solution code:
text = input().split()
if len(text[0]) + len(text[1]) + len(text[2]) != 17:
  print("NO")
elif len(text[0]) != 5 || len(text[0]) != 7:
  print("NO")
elif len(text[1]) != 5 || len(text[1]) != 7:
  print("NO")
else:
  print("YES")

Submission status: Runtime Error

Solution code:
a=input()

b=[int(i) for i in a]

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

Submission status: Runtime Error

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

l = []
i = 0

l = [input() for i in range(n)]
result = sorted(l)
s = ''.join(result)
# for i in range(n):
print(s)

Submission status: Runtime Error

Solution code:
X={int(input()),int(input()),int(input())}
if X in [{5,5,7},{5,7,5},{7,5,5}]:
    print("YES")
else:
    print("NO")

Submission status: Runtime Error

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

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

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


    else:
        return print("NO")

judge()

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
num = list(map(int, input().strip(" ")))
five = 0;
seven = 0;
for i in range(3):
  if (num[i]==5):
    five++;
  elif (num[i] == 7):
    seven++;
if (five == 2 and seven == 1):
  print("Yes")
else:
  print("no")

Submission status: Runtime Error

Solution code:
a = input().strip(" ")
five = 0;
seven = 0;
for i in range(3):
  if (a[i]==5):
    five++;
  elif (a[i] == 7):
    seven++;
if (five == 2 and seven == 1):
  print("Yes")
else:
  print("no")

Submission status: Runtime Error

Solution code:
A, B, C = map(int, raw_input().split())
if (A != 5 and A!=7):
	print('NO')
if (B != 5 and B!=7):
	print('NO')
if (C != 5 and C!=7):
	print('NO')
if(A + B + C != 17):
	print('NO')
else:
	print('YES')

Submission status: Runtime Error

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

if A+B+C == 17 and A*B*C == 175:
    print('YES')
else:
    print('NO')

Submission status: Runtime Error

Solution code:
n,k=map(int,input().split());d=input().split()
while 1:
    for c in str(n):
        if c in d:break
    else:
        print(n)
        exit()
    n += 1

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
#coding: utf-8
s = input()
print(["NO", "YES"][s.count("5")==2 * s.count("7")==1]

Submission status: Runtime Error

Solution code:
N,x=map(int,input().split())
a=list(map(int, input().split()))
a.sort()
m=0
i=0
if a[0]>x:
    print(0)
else:
    while m<=x and i<N:
        m += a[i]
        i +=1
    if i==N and m!=x:
        i -=1
        print(i)
    else:
        print(i)

Submission status: Runtime Error

Solution code:
#include <iostream>
#include <math.h>
#include <vector>
#include <map>
#include <stack>
#include <queue>
#include <set>
#include <algorithm>
#include <iomanip>
#include <string.h>

#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n)  FOR(i,0,n)
#define ALL(a)  (a).begin(),(a).end()

typedef long long lint;

using namespace std;

int main(){
  int A[3];
  int B[3]={5,5,7};
  cin>>A[0]>>A[1]>>A[2];
  sort(A,A+3);
  if(memcmp(A,B,sizeof A))cout<<"NO"<<endl;
  else cout<<"YES"<<endl;
  return 0;
}

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
num1 = int(input("整数値を入力してください＞"))
while num1<1 or num1>10:
    print("１～１０の整数値を入力してください")
    num1 = int(input("整数値を入力してください＞"))
num2 = int(input("整数値を入力してください＞"))
while num2<1 or num2>10:
    print("１～１０の整数値を入力してください")
    num2 = int(input("整数値を入力してください＞"))
num3 = int(input("整数値を入力してください＞"))
while num3<1 or num3>10:
    print("１～１０の整数値を入力してください")
    num3 = int(input("整数値を入力してください＞"))

if num1 == 7 :
    if num2 == num3 and num2 == 5 :
        print("YES")
    else :
        print("NO")

elif num2 == 7 :
    if num1 == num3 and num1 == 5 :
        print("YES")
    else :
        print("NO")
elif num3 == 7 :
    if num1 == num2 and num1 == 5 :
        print("YES")
    else :
        print("NO")
        
else :
    print("NO")

Submission status: Runtime Error

Solution code:
num1 = int(input("整数値を入力してください＞"))
num2 = int(input("整数値を入力してください＞"))
num3 = int(input("整数値を入力してください＞"))

if num1 == 7 :
    if num2 == num3 and num2 == 5 :
        print("YES")
    else :
        print("NO")

elif num2 == 7 :
    if num1 == num3 and num1 == 5 :
        print("YES")
    else :
        print("NO")
elif num3 == 7 :
    if num1 == num2 and num1 == 5 :
        print("YES")
    else :
        print("NO")
        
else :
    print("NO")

Submission status: Runtime Error

Solution code:
/7 7/cNO
cYES

Submission status: Runtime Error

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

Submission status: Runtime Error

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

if (a + b + c == 17) && (a * b * c == 5 * 5 * 7):
    print("YES")
else:
    print("NO")

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
print('YNEOS'[input()%18!=17::2])

Submission status: Runtime Error

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