Problem:


Score : 100 points

Problem Statement

Given is a three-digit integer N. Does N contain the digit 7?

If so, print Yes; otherwise, print No.

Constraints

100 \leq N \leq 999

Input

Input is given from Standard Input in the following format:

N

Output

If N contains the digit 7, print Yes; otherwise, print No.

Sample Input 1

117

Sample Output 1

Yes

117 contains 7 as its last digit.

Sample Input 2

123

Sample Output 2

No

123 does not contain the digit 7.

Sample Input 3

777

Sample Output 3

Yes



Sample input:
117


Sample output:
Yes

Submission status: Wrong Answer

Solution code:
from random import random
print(['Yes', 'No'][random() < 0.5])

Submission status: Wrong Answer

Solution code:
import sys
def input(): return sys.stdin.readline().rstrip()

N = input()

print(N)
if '7' in N:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
N=input()
for idx in range(len(N)):
  if N[idx] == 7:
    print('Yes')
    break
else:
  print('No')

Submission status: Wrong Answer

Solution code:
a = input()
if a.count('7') == 0:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
n = int(input())
while n!=0:
    if n%10 == 7:
        print("YES")
        break
    n//=10
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
n = list(input())

for i in n:
    if i == "7":
        print("Yes")
        exit()
    else:
        print("No")

Submission status: Wrong Answer

Solution code:
n = input()
for i in n:
    if i == "7":
        print("Yes")
        exit()
    else:
        print("No")

Submission status: Wrong Answer

Solution code:
n = input()
if n in "7":
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
N=str(input())
if N[0]==7 or N[1]==7 or N[2]==7:
	print('Yes')
else:
	print('No')

Submission status: Wrong Answer

Solution code:
i=input()
if i[2]=='7':
	print('Yes')
else:
	print('No')

Submission status: Wrong Answer

Solution code:
i=int(input())
if(i%10==7):
	print('Yes')
else:
	print('No')

Submission status: Wrong Answer

Solution code:
i=int(input())
print(i%10)

Submission status: Wrong Answer

Solution code:
N = int(input())

S = []

for i in range(1, N + 1):
    if i % 3 != 0 and i % 5 != 0:
        S.append(i)
    else:
        pass

print(sum(S))

Submission status: Wrong Answer

Solution code:
N = int(input())
S = 0

for i in range(1, N + 1):
    if i % 15 == 0:
        S += 0
    elif i % 3 == 0:
        S += 0
    elif i % 5 == 0:
        S += 0
    else:
        S += i
print(S)

Submission status: Wrong Answer

Solution code:
import sys
from math import ceil as C, floor as F, sqrt, gcd as G
from collections import defaultdict as D, Counter as CNT
from functools import reduce as R
import heapq as HQ
from operator import mul

class Heap:
  def __init__(self, data, reverse=False):
    self.reverse = -1 if reverse else 1
    self.data = [self.reverse * d for d in data]
    HQ.heapify(self.data)
  def push(self, x): return HQ.heappush(self.data, self.reverse * x)
  def pop(self): return self.reverse * HQ.heappop(self.data) 

ALP = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
alp = 'abcdefghijklmnopqrstuvwxyz'
def prod(list): return R(mul, list, 1)
def _X(): return sys.stdin.readline().rstrip().split(' ')
def _S(ss): return tuple(ss) if len(ss) > 1 else ss[0]
def S(): return _S(_X())
def Ss(): return list(S())
def _I(ss): return tuple([int(s) for s in ss]) if isinstance(ss, tuple) else int(ss)
def I(): return _I(S())
def _Is(ss): return list(ss) if isinstance(ss, tuple) else [ss]
def Is(): return _Is(I())

n = I()
rgb = S()

cnt = CNT(list(rgb))
ans = prod([cnt[c] for c in ['R', 'G', 'B']])

for i, r in enumerate(rgb):
    for j, g in enumerate(rgb[i+1:], start=i+1):
        k = j + (j - i)
        if k < len(rgb):
            if r != g and g != rgb[k] and r != rgb[k]:
                ans -= 1

print(ans)

Submission status: Wrong Answer

Solution code:
N = int(input())
sum = 0

for i in range(1, N + 1):
    if not i % 3 == 0 and not i % 5 == 0:
        sum += i

print(sum)

Submission status: Wrong Answer

Solution code:
A=list(map(int,input()))
b=0
print(A)
for i in range(0,3):
    if A[i]==7:
        b+=1

if b==0:
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
A=list(map(int,input()))
b=0

for i in range(0,2):
    if A[i]==7:
        b+=1

if b==0:
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
i = int(input())
Total = []

for i in range(1, i + 1):

    if (i % 3 == 0) and (i % 5 == 0):
        'FizzBuzz'
    elif i % 3 == 0:
        'Fizz'
    elif i % 5 == 0:
        'Buzz'
    else:
        Total.append(i)

        print(sum(Total))

Submission status: Wrong Answer

Solution code:
# 1 <= N <= 1000000
N = int(input())

total = []

for x in range(1, N+1):
    if not(x % 15 == 0 or x % 5 == 0 or x % 3 == 0):
        total.append(x)
        print(sum(total))

Submission status: Wrong Answer

Solution code:
N = int(input())
total = 0
for i in range(1, N + 1):
    if i % 3 != 0 and i % 5 != 0:
        total += i
print(total)

Submission status: Wrong Answer

Solution code:
n = int(input())

while n > 0:
    mod = n % 10
    if mod == 7:
        print('Yes')
        exit(0)
    n = n / 10

print('No')

Submission status: Wrong Answer

Solution code:
N=input()
x=N.count(N)
print("Yes" if x>0
      else "No")

Submission status: Wrong Answer

Solution code:
N = int(input())
sum = 0

for i in range(N):
    if (i + 1) % 3 != 0 and (i + 1) % 5 != 0:
        sum += (i + 1)

print(sum)

Submission status: Wrong Answer

Solution code:
import math
from math import gcd,pi,sqrt
INF = float("inf")

import sys
sys.setrecursionlimit(10**6)
import itertools
from collections import Counter,deque
def i_input(): return int(input())
def i_map(): return map(int, input().split())
def i_list(): return list(i_map())
def i_row(N): return [i_input() for _ in range(N)]
def i_row_list(N): return [i_list() for _ in range(N)]
def s_input(): return input()
def s_map(): return input().split()
def s_list(): return list(s_map())
def s_row(N): return [s_input for _ in range(N)]
def s_row_str(N): return [s_list() for _ in range(N)]
def s_row_list(N): return [list(s_input()) for _ in range(N)]


def main():
    n = i_input()
    n = str(n)
    if "7" in n:
        print("yes")
    else:
        print("No")




if __name__=="__main__":
    main()

Submission status: Wrong Answer

Solution code:
import math
from math import gcd,pi,sqrt
INF = float("inf")

import sys
sys.setrecursionlimit(10**6)
import itertools
from collections import Counter,deque
def i_input(): return int(input())
def i_map(): return map(int, input().split())
def i_list(): return list(i_map())
def i_row(N): return [i_input() for _ in range(N)]
def i_row_list(N): return [i_list() for _ in range(N)]
def s_input(): return input()
def s_map(): return input().split()
def s_list(): return list(s_map())
def s_row(N): return [s_input for _ in range(N)]
def s_row_str(N): return [s_list() for _ in range(N)]
def s_row_list(N): return [list(s_input()) for _ in range(N)]


def main():
    n = s_input()
    if "7" in n:
        print("yes")
    else:
        print("No")




if __name__=="__main__":
    main()

Submission status: Wrong Answer

Solution code:
N = int(input())
answer = 0
for i in range(1, N+1):
    if i % 3 != 0 and i % 5 != 0:
        answer = answer + i
print(answer)

Submission status: Wrong Answer

Solution code:
n = input()
for i in n:
  if i == 7:
    print("Yes")
    quit()
print("No")

Submission status: Wrong Answer

Solution code:
result = 0
N = int(input())
for N in list(range(1, N+1)):
    if int(N % 3 == 0) or int(N % 5 == 0):
        0
    else:
        result = result + N
print(result)

Submission status: Wrong Answer

Solution code:
N = int(input())
total = 0
for i in range(1, N + 1):
    if i % 3 == 0 or i % 5 == 0:
        total += i
print(total)

Submission status: Wrong Answer

Solution code:
#A
N = list(input())
if any(N) ==7:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
117

Submission status: Wrong Answer

Solution code:
from random import random

print(['Yes', 'No'][random() < 0.5])

Submission status: Wrong Answer

Solution code:
int = int(input())
i=1
while i<=3:
  dev=int % 10
  if dev == 7:
    print("Yes")
    i=5
  int = int // 10
  i += 1
  if i==3:
    print("No")

Submission status: Wrong Answer

Solution code:
int = int(input())
i=1
while i<=3:
  dev=int % 10
  if dev == 7:
    print("Yes")
    break
  int = int // 10
  i += 1
  if i==3:
    print("No")

Submission status: Wrong Answer

Solution code:
n = input()
print('Yes') if n in '7' else print('No')

Submission status: Wrong Answer

Solution code:
N=input()
if N in '7':
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
from math import gcd

k = int(input())
ans = 0
for l in range(1,k+1):
  for m in range(1,k+1):
    for n in range(1,k+1):
      ans += gcd(gcd(l,m),n)

print(ans)

Submission status: Wrong Answer

Solution code:
N = input()
if N[0] == 7 or N[1] == 7 or N[2] == 7:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
n=int(input())


if(n/100)==7 or (n/10)%10 ==7 or (n%10)==7 :
    print('Yes')
else : 
    print('No')

Submission status: Wrong Answer

Solution code:
n=input()
if n[0]==7 or n[1]==7 or n[2]==7:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
n = int(input())
count = 0
for i in range(1, n+1):
    if i % 3 != 0 and i % 5 != 0:
        count += i
        
print(count)

Submission status: Wrong Answer

Solution code:
N=list(input())
ans=False
if N[0]=="7":
    ans=True
if N[1]=="7":
    ans=True
if N[2]=="7":
    ans=True
if ans:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
s = input()
if s[0] != 7 and s[1] != 7 and s[2] != 7:
  print('No')
else:
  print('Yes')

Submission status: Wrong Answer

Solution code:
from math import gcd
r=range(1, int(input()) + 1)
print(sum(gcd(gcd(a, b), c) for a in r for b in r for c in r))

Submission status: Wrong Answer

Solution code:
from math import *
r = range(1, int(input()) + 1)
print(sum(gcd(gcd(a, b), c) for a in r for b in r for c in r))

Submission status: Wrong Answer

Solution code:
from math import gcd
r = range(1, int(input()) + 1)
print(sum(gcd(gcd(a, b), c) for a in r for b in r for c in r))

Submission status: Wrong Answer

Solution code:
from math import gcd
r = range(1, int(input()) + 1)
print(sum(gcd(gcd(a, b), c)) for a in r for b in r for c in r)

Submission status: Wrong Answer

Solution code:
N = input()

flag = 0

for i in range(3):
  if(int(N[i]==7)):
    flag = 1
    break
if(flag == 0):
  print("No")
else:
  print("Yes")

Submission status: Wrong Answer

Solution code:
n = str(input())

ans = 'No'

for i in range(len(n)):
    if n[i] == '7':
        ans = 'Yes'

print('Yes')

Submission status: Wrong Answer

Solution code:
N = input()
l = len(N)
for i in range(l):
  if N[i] ==7:
    print("Yes")
    exit()
print("No")

Submission status: Wrong Answer

Solution code:
s=list(input())
print('yes' if '7' in s else 'no')

Submission status: Wrong Answer

Solution code:
s=list(input())
if '7' in s:
    print('yes')
else:
    print('no')

Submission status: Wrong Answer

Solution code:
import re

str = input()

if re.match(str, "7"):
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
a = int(input())


c=0

for i in range(a + 1):
 	if bool(i%3!=0 and i % 5 != 0):
  		c += i
  
print(c)

Submission status: Wrong Answer

Solution code:
s = list(input())

flag = True
for i in range(3):
    if '7' == s[i]:
        print('Yes')
        flag = False
if flag:
    print('No')

Submission status: Wrong Answer

Solution code:
import math
k = int(input())
sum = 0
for a in range(1,k+1):
  for b in range(1,k+1):
    ab = math.gcd(a,b)
    for c in range(1,k+1):
      sum += math.gcd(ab,c)
print(sum)

Submission status: Wrong Answer

Solution code:
import math
N = int(input())
v = False
while N != 0:
    i = N - (N // 10) * 10
    v |= (i == 7)
    N //= 10
print(v)

Submission status: Wrong Answer

Solution code:
n = int(input())
num = []
while n>0:
  num.append(n%10)
  n //= 10

for i in num:
  if i == 7:
    print("Yes")
    break

print("No")

Submission status: Wrong Answer

Solution code:
nums = list(str(input()))
if "7" in nums:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
import io
import sys

# input here
_INPUT = """\
123
"""
sys.stdin = io.StringIO(_INPUT)

n = input().count('7')
if n == 0:
    ans = 'No'
else:
    ans = 'Yes'

print(ans)

Submission status: Wrong Answer

Solution code:
# A Lucky 7

N = input()

for n in N:
  if n == "7":
    print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
N = list(input())
if 7 in N:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
N = int(input())

count = 0
for i in range (1,N+1):
  if not(i % 3 == 0 or i % 5 == 0):
    count += i
  print(count)

Submission status: Wrong Answer

Solution code:
N = int(input())

count = 0
for i in range (1,N+1):
  if i % 3 == 0 or i % 5 == 0:
    count += i
  print(count)

Submission status: Wrong Answer

Solution code:
N = input()
N = int()
count = 0
for i in range (1,N+1):
  if i % 3 == 0 or i % 5 == 0:
    count += i
  print(count)

Submission status: Wrong Answer

Solution code:
def main():
  n = int(input())
  flag = 0
  while n > 0:
      if n % 10 == 7:
          flag += 1
      n /= 10
  if flag > 0:
      print('Yes')
  else:
      print('No')
main()

Submission status: Wrong Answer

Solution code:
def main():
  n = int(input())
  flag = 0
  while n < 0:
      if n % 10 == 7:
          flag += 1
          n /= 10
  if flag > 0:
      print('Yes')
  else:
      print('No')
main()

Submission status: Wrong Answer

Solution code:
def main():
  n = int(input())
  flag = 0
  while n < 0:
      if n % 10 == 7:
          flag += 1
  if flag > 0:
      print('Yes')
  else:
      print('No')
main()

Submission status: Wrong Answer

Solution code:
a,b,c = input()
a = int(a)
b = int(b)
c = int(c)
if (a*b*c)%7 == 0:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
A = input()
for a in range(3):
  if A[a] == '7':
    print('yes')
    break
  if a == 2:
    print('No')

Submission status: Wrong Answer

Solution code:
n = input()
if '7' in n:
  print('yes')
else:
  print('no')

Submission status: Wrong Answer

Solution code:
N=input()
if N.find('7') > 0:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
N = input()
if "7" in N:
        print("Yes")
else:
        print:("No")

Submission status: Wrong Answer

Solution code:
N = input()
if "7" in N:
    print("Yes")
else:
    print:("No")

Submission status: Wrong Answer

Solution code:
N = input()
if '7' in N:
    print("Yes")
elif '7' not in N:
    print:("No")

Submission status: Wrong Answer

Solution code:
N = input()
if '7' in N:
    print('Yes')
elif '7' not in N:
    print:('No')

Submission status: Wrong Answer

Solution code:
N = input()
if '7' in N:
    print('Yes')
else:
    print:('No')

Submission status: Wrong Answer

Solution code:
def index(n):
    result = "OK" if '7' in n else "NO"
    return result
print(index(str(input())))

Submission status: Wrong Answer

Solution code:
n = [input()]
if 7 in n:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
N = input()
if N[0] == "y" or N[1] == "7" or N[2] == "7":
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
N = list(input())
print(N)
if "7" in N:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
flag = False
for i in input():
  if i == '7':
    print('Yes')
    flag = True
if not flag:
  print('No')

Submission status: Wrong Answer

Solution code:
n = list(input())
print("Yes") if all([i == "7" for i in n]) else print("No")

Submission status: Wrong Answer

Solution code:
n=str(input())
if n[0] ==7 or n[1]==7 or n[2]==7:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
n = int(input())

ans = 'No'

while n > 0:
  n_amari = n % 10
  if n_amari == 7:
    ans = 'Yes'
    break
  n /= 10

print(ans)

Submission status: Wrong Answer

Solution code:
K = int(input())

ans = 0

import math

for i in range(1, K+1):
    for j in range(1, K+1):
        s=math.gcd(i, j)
        for k in range(1, K+1):
            ans += math.gcd(k, s)

print(ans)

Submission status: Wrong Answer

Solution code:
import itertools
import functools
import math

def OK():
    N = int(input())

    sum = 0
    cnt = 0
    for i in range(1,N+1):
        for j in range(1,N+1):
            chk = math.gcd(i,j)
            for k in range(1,N+1):
                sum += math.gcd(chk,k)

    print(sum)

OK()

Submission status: Wrong Answer

Solution code:
n = input()
ans = "No"
for i in range(3):
  if n[i] == 7:
    ans = "Yes"
    break
print(ans)

Submission status: Wrong Answer

Solution code:
if "7" in input():
  print("yes")
else:
  print("no")

Submission status: Wrong Answer

Solution code:
if '7' in input():
  print('yes')
else:
  print('no')

Submission status: Wrong Answer

Solution code:
if '7' in str(input()):
  print('yes')
else:
  print('no')

Submission status: Wrong Answer

Solution code:
def main():
    from builtins import int, map, list, print
    import sys
    sys.setrecursionlimit(10 ** 6)

    input = (lambda: (sys.stdin.readline()).rstrip())
    input_list = (lambda: input().split())
    input_number = (lambda: int(input()))
    input_number_list = (lambda: list(map(int, input_list())))

    N = input()
    print('YNeos'[not '7' in N::2])

    if __name__ == '__main__':
        main()

Submission status: Wrong Answer

Solution code:
N = list(map(int, input()))
ck = 'No'
for i in N:
  if N == 7:
    ck = 'Yes'
print(ck)

Submission status: Wrong Answer

Solution code:
n=int(input())

ans='No'

if n//100==7 or n//10==7 or n%10==7:
    ans='Yes'
else :
    ans='No'
print(ans)

Submission status: Wrong Answer

Solution code:
n=int(input())

ans='No'

if n//100==7 or n//10==7 or n%10==7:
    ans='Yes'
print(ans)

Submission status: Wrong Answer

Solution code:
n=list(input())

ans='No'

if n[0]==7 or n[1]==7 or n[2]==7:
    ans='Yes'
print(ans)

Submission status: Wrong Answer

Solution code:
n=input()

ans='No'

if n[0]==7 or n[1]==7 or n[2]==7:
    ans='Yes'
print(ans)

Submission status: Wrong Answer

Solution code:
n = input()
 
if n in "7":
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
n = input()
 
if n in "7":
  print("Yes")
elif n not in "7":
  print("No")

Submission status: Wrong Answer

Solution code:
N=(input())
for i in N:
    if '7' in i:
        print('Yes')
        break
    else:
        print('No')
        break

Submission status: Wrong Answer

Solution code:
def gcd(p,q):
    while q != 0:
        r = p % q
        p = q
        q = r
    return p
k = int(input())
a = 0
for i in range(1,k+1):
    for j in range(1,k+1):
        for k in range(1,k+1):
            a += gcd(gcd(i,j),k)
print(a)

Submission status: Wrong Answer

Solution code:
import math


def main():
    K = int(input())
    s = 0
    for i in range(1, K+1):
        for j in range(1, K + 1):
            tmp = math.gcd(i, j)
            for k in range(1, K + 1):
                s += math.gcd(tmp, k)

    print(s)


if __name__=="__main__":
    main()

Submission status: Wrong Answer

Solution code:
n=list(input())
if n[0]=='7' or n[1]=='7' or n[2]=='7':
    print("Yes")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
N = input()

if N.count("7") >= 1:
  print("yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
import math
k=int(input())
a=0
for i in range(1,k+1):
  for j in range(1,k+1):
    for h in range(1,k+1):
      a+=math.gcd(math.gcd(i,j),h)
    
print(a)

Submission status: Wrong Answer

Solution code:
N=input().split()
if '7' in N:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
N = input()
thereIs7 = False
for i in N:
    if i == 7:
        thereIs7 = True
        break
if thereIs7:
    print('Yes')
else:
    print("No")

Submission status: Wrong Answer

Solution code:
import math

n = (int)(input())

ret = False
while n > 0:
    if n % 10 == 7:
        ret = True
        break
    n = math.floor(n / 10)

print("{}".format(ret))

Submission status: Wrong Answer

Solution code:
num = input()

for i in range(len(num)):
  if(num[i] == "7"):
    print("Yes")
    break
  elif(len(num) == i):
    print("No")
    break

Submission status: Wrong Answer

Solution code:
#!/usr/bin/python3

num = input();

ok = False

for i in num:
    if i == '7':
        ok = True

if ok:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
n = input()
for i in range(3):
    if n[i] == '7':
        print('Yes')
        break
    else:
        print('No')

Submission status: Wrong Answer

Solution code:
n = input()
for i in range(3):
    if n[i] == 7:
        print('Yes')
        break
    else:
        print('No')

Submission status: Wrong Answer

Solution code:
N = input()
for i in N:
  if i =="7":
    ans = "Yes"
  else:
    ans = "No"
print(ans)

Submission status: Wrong Answer

Solution code:
N = input()
Sev = '7'
if N.find(Sev):
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
N = input()
if N.find('7'):
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
N = input()
if N in '7':
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
x = input()

if x.find("7") > 0:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:


import math
import itertools

n = int(input())
ans =0
for a,b,c in itertools.product(range(1,n+1),repeat=3):

    g = math.gcd(math.gcd(a,b),c)
    ans +=g
print(ans)

Submission status: Wrong Answer

Solution code:
N  = int(input())
judge = "No"
for i in range(3):
  K = N/(10**(2-i))
  N -= K*(10**(2-i))
  if(K==7):
    judge = "Yes"
    break
print(judge)

Submission status: Wrong Answer

Solution code:
N = str(input())

if N[-1]==7 or N[-2]==7 or N[-3]==7:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
N = input()

if N[-1]==7 or N[-2]==7 or N[-3]==7:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
t=int(input())
S=0
for i in list(range(t+1)):
  if i%5!=0 and i%3!=0:
    S += i
print(S)

Submission status: Wrong Answer

Solution code:
n = int(input())
keta1 = int(str(n)[0])
keta2 = int(str(n)[1])
keta3 = int(str(n)[2])
if (keta1 * keta2 * keta3 + 7) // 7 != 0:
  print("No")

else:
  print("Yes")

Submission status: Wrong Answer

Solution code:
n = int(input())
keta1 = int(str(n)[0])
keta2 = int(str(n)[1])
keta3 = int(str(n)[2])
if keta1 * keta2 * keta3 // 7 != 0:
  print("No")

else:
  print("Yes")

Submission status: Wrong Answer

Solution code:
n = int(input())
keta1 = int(str(n)[0])
keta2 = int(str(n)[1])
keta3 = int(str(n)[2])
if keta1 != 7:
  if keta2 != 7:
    if keta3 != 7:
      print("No")

else:
  print("Yes")

Submission status: Wrong Answer

Solution code:
n = str(input())
keta1 = n[0]
keta2 = n[1]
keta3 = n[2]
if keta1 != 7:
  if keta2 != 7:
    if keta3 != 7:
      print("No")

else:
  print("Yes")

Submission status: Wrong Answer

Solution code:
n = int(input())
keta1 = str(n)[0]
keta2 = str(n)[1]
keta3 = str(n)[2]
if keta1 != 7:
  if keta2 != 7:
    if keta3 != 7:
      print("No")

else:
  print("Yes")

Submission status: Wrong Answer

Solution code:
a=int(input())
if "7" in "str(a)":
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
n = input()
ans = 0
for i in range(int(n)):
    if not (i%3 == 0 or i%5 == 0):
        ans += i

print(ans)

Submission status: Wrong Answer

Solution code:
n=int(input())
if n/100==7:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
n=int(input())
data=[10**i for i in range(1,3+1)]
for i in data:
  if n%i/(i/10)==7:
    print("Yes")
    exit()
print("No")

Submission status: Wrong Answer

Solution code:
n=int(input())
data=[10**i for i in range(1,3+1)]
for i in data:
  if n%i==7:
    print("Yes")
    exit()
print("No")

Submission status: Wrong Answer

Solution code:
n=input()
if n[-1]=='7' or n[-2]=='7' or [-3]=='7':
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
N=int(input())
if N//100==7 or (N//10)%10==7 or N//10==7 :
  print("Yes")
else :
  print("No")

Submission status: Wrong Answer

Solution code:
import math
K = int(input())

ans = 0
for i in range(1,K+1):
  for j in range(1,K+1):
    for k in range(1,K+1):
      ans += math.gcd( math.gcd(i,j) , k )

print(ans)

Submission status: Wrong Answer

Solution code:
a = input()
if "7" in a:
  print("Yes")
else :
  print("NO")

Submission status: Wrong Answer

Solution code:
a=input()
if "7" in a:
  print("Yes")
else :
  print("NO")

Submission status: Wrong Answer

Solution code:
a=input()
if '7' in a:
  print("Yes")
else :
  print("NO")

Submission status: Wrong Answer

Solution code:
n = int(input())
flag = False

while(n>0):
    if n%10==7:
        flag = True
        break
    n/=10

if flag:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
N=int(input())

digit1=N % 10
digit2=N // 10
digit3=N // 100

if digit1 == 7 or digit2 == 7 or digit3 == 7:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
n = input()

if(n[0]=='7' and n[1]=='7' and n[2]=='7'):
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
N = int(input())
A = list(range(N + 1))
k = 0
for i in A :
  if int(A[i]) / 3 !=0 or int(A[i]) / 5 != 0 :
    k += A[i]
    
print(k)

Submission status: Wrong Answer

Solution code:
N = input()
A =list(N)
if int(A[0]) % 7 == 0 or int(A[1]) % 7 == 0 or int(A[2]) % 7 == 0 :
  print ('Yes')
else :
  print ('No')

Submission status: Wrong Answer

Solution code:
if "7" in input():
	print("yes")
else:
	print("No")

Submission status: Wrong Answer

Solution code:
N=input()

flag=True
for i in range(3):
  if N[i]=="7":
    flag=True
    print('Yes')
    break
 
if flag:
  print('No')

Submission status: Wrong Answer

Solution code:
from math import gcd

k = int(input())
ans = 0
for x in range(1, k + 1):
    for y in range(1, k + 1):
        for z in range(1, k + 1):
            ans += gcd(gcd(x, y), z)
print(ans)

Submission status: Wrong Answer

Solution code:
R=input()
print("yes" if R[0]=="7" else "yes" if R[1]=="7" else "yes"if R[2]=="7"else "no")

Submission status: Wrong Answer

Solution code:
n = input()
for i in range(len(n)):
    if n[i] == '7':
        print('Yes')
    else:
        print('No')

Submission status: Wrong Answer

Solution code:
tmp = input().split()
N1 = int(tmp[0][0])
N2 = int(tmp[0][1])
N3 = int(tmp[0][2])

if N1 == 7 or N2 == 7 or N3 == 7:
    print('yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
n=input()

'Yes' if '7' in n else 'No'

Submission status: Wrong Answer

Solution code:
n = str(input())
if int(n[0]) and int(n[1]) and int(n[2]) != 7:
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
n = str(input())
if n[0] and n[1] and n[2] != 7:
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
n = str(input())
if n[0] or n[1] or n[2] != 7:
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
N=input()
if N.find('7')==1:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
s = str(input())
if "7" in s:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
N=input()
if N.find('7')==1:
    print('yes')
else:
    print('no')

Submission status: Wrong Answer

Solution code:
s=input()
if s[0]==s[1]==s[2]:
   print("Yes")
else:
   print("No")

Submission status: Wrong Answer

Solution code:
i = input()
if '7' in i:
  print("True")
else:
  print("False")

Submission status: Wrong Answer

Solution code:
s= input()
i=0
res=[]
while i< len(s):
  j=s[i:i+1]
  res.append(j)
  i+=1
print('Yes' if str(7) in res else 'NO')

Submission status: Wrong Answer

Solution code:
s= input()
i=0
while i< len(s):
  j=s[i:i+1]
  if j==7:
    print('Yes')
    break
  i+=1

Submission status: Wrong Answer

Solution code:
N = int(input())
h = N // 100
t = (N - h) // 10
o = N - h - t
if h == 7 or t == 7 or o == 7:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
N  = int(input())
sum = 0
for i in range(1,N+1):
    if not(i % 3 == 0 or i % 5 == 0):
        sum += i
print(sum)

Submission status: Wrong Answer

Solution code:
n = int(input())

ans = 0

for i in range(0,3):
    if (n % 10) % 7 == 0:
        ans = 1
        break
    else:
        n = int(n/10)

if ans == 1:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
n=input()
result=''
for s in n:
    if s=='7':
        result+='Yes'
    else:
        continue
if result=='Yes':
    print(result)
else:
    print('No')

Submission status: Wrong Answer

Solution code:
a, b, c = input()
if a == 7:
    print('Yes')
elif b == 7:
    print('Yes')
elif c == 7:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
N = input()
print("Yes" if N in "7" else "No")

Submission status: Wrong Answer

Solution code:
K = int(input())


def gcd(x, y):
    if y == 0:
        return x
    return gcd(y, x % y)


ans = 0
for a in range(K):
    for b in range(K):
        for c in range(K):
            ans += gcd(gcd(a+1, b+1), c+1)

print(ans)

Submission status: Wrong Answer

Solution code:
N = input()
if N.count == 0:
  print("No")
else:
  print("Yes")

Submission status: Wrong Answer

Solution code:
n = input()

if "7" in n:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
n=str(input())
if n.find("7"):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
print('Hello, world!')
print(1 + 2)

Submission status: Wrong Answer

Solution code:
N = input()

ans = 'Yes'
for n in N:
    if n == '7':
        ans = 'No'
print(ans)

Submission status: Wrong Answer

Solution code:
n = int(input())

a = int(n / 100)

b = int(n % 100 / 10)
c = int(n % 10)

print(b)
if 7 in (a, b, c):
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
N = input()
n = set(N)
if 7  in n:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

if 7 in n:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
n = int(input())
flag = 1

n_1 = (n-(n//10)*10)
n_10 = (n-(n//100)*100 - n_1)//10
n_100 = (n - n_1 - n_10*10)//100

if(n_1!=7 and n_10!=7 and n_100!=7):
  flag = 0

if flag == 0 :
  print("NO")
else:
  print("YES")

Submission status: Wrong Answer

Solution code:
n = input()
flag = 0

for i in range(3):
  if n[i] == '7':
    flag = 1

if flag == 0 :
  print("NO")
else:
  print("YES")

Submission status: Wrong Answer

Solution code:
import sys

n = input()
for i in range(3):
  if(n[i] == "7"):
    print('YES')
    sys.exit()

print('NO')

Submission status: Wrong Answer

Solution code:
import sys

n = input()
for i in range(3):
  if(n[i] == "7"):
    print("YES")
    sys.exit()

print("NO")

Submission status: Wrong Answer

Solution code:
import sys

N = input()

for i in range(3):
    if (N[i]=='7'):
        print("YES")
        sys.exit()

print("NO")