Problem:


Score : 100 points

Problem Statement

We have five variables x_1, x_2, x_3, x_4, and x_5.

The variable x_i was initially assigned a value of i.

Snuke chose one of these variables and assigned it 0.

You are given the values of the five variables after this assignment.

Find out which variable Snuke assigned 0.

Constraints

The values of x_1, x_2, x_3, x_4, and x_5 given as input are a possible outcome of the assignment by Snuke.

Input

Input is given from Standard Input in the following format:

x_1 x_2 x_3 x_4 x_5

Output

If the variable Snuke assigned 0 was x_i, print the integer i.

Sample Input 1

0 2 3 4 5

Sample Output 1

1

In this case, Snuke assigned 0 to x_1, so we should print 1.

Sample Input 2

1 2 0 4 5

Sample Output 2

3



Sample input:
0 2 3 4 5


Sample output:
1

Submission status: Runtime Error

Solution code:
from sys import stdin, stdout
import sys
import bisect
INF=1e9
def get_int(): return int(stdin.readline().strip())
def get_ints(): return map(int,stdin.readline().strip().split()) 
def get_array(): return list(map(int,stdin.readline().strip().split()))
def get_string(): return stdin.readline().strip()
def op(c): return stdout.write(c)
#from collections import defaultdict 
#for _ in range(int(stdin.readline())):
x=get_array()
for i in range(x):
    if x[i]==0:
        print(i+1)

Submission status: Runtime Error

Solution code:
a, b, c, d, e = map(int, input().split())
if a = 0:
	print("1")
elif b = 0:
	print("2")
elif c = 0:
	print("3")
elif d = 0:
	print("4")
else:
	print("5")

Submission status: Runtime Error

Solution code:
x,y=(int(x) for x in input().split())
if y>x*4:
    print('No')
elif y<x*2:
    print('No')
elif y%2==1:
    print('No')
else:
    print('Yes')

Submission status: Runtime Error

Solution code:
x, n = map(int, input().split())
if n == 0:
    print(x)
else:
    p = list(map(int, input().split()))

    p.sort()
    y = 0

    for i in range(n):
        if p[i] <= x:
            y = i
            if i != n-1 and x < p[i+1]:
                break 

    i = 0
    while 1 == 1:
        if 0 <= y - i and x - i != p[y - i]:
            print(x - i)
            break
        if y + i < n and x + i != p[y + i]:
            print(x + i)
            break
        i = i + 1

Submission status: Runtime Error

Solution code:
x, y = input().split()
x = int(x)
y = int(y)

def check(x, y):
    # 動物の可能性を考える
    for i in range(0, x):
        # 2本足,4本足の動物の数
        leg2_animal = i
        leg4_animal = x - leg2_animal
        
        # 全体の足の数を数えてみる
        sum_legs = leg2_animal * 2 + leg4_animal * 4

        if sum_legs == y:
            print("Yes")
            return

    print("No")

check(x,y)

Submission status: Runtime Error

Solution code:
x = [1, 2, 0, 4, 5] 
for i in x;
  if x[i] == 0; 
  	print i+1 
  break; 
  else: i += 1

Submission status: Runtime Error

Solution code:
X,Y=map(int,input().split())
var=0
for i in range(2X,4X+1,2):
  if Y==i:
    var=1
if var==1:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
from numba import jit

@jit(cache = True)
def solve(i,j,a):
    k=False
    sc=0
    for c in a:
        if c>j:
            break
        elif c>j//2 and c<j:
            continue
        elif c==j:
            sc+=1
            if sc>=2:
                k=True
                break
        else:
            if j%c==0:
                k=True
                break
    return k

n=int(input())
a=sorted(list(map(int,input().split())))
ans=0
for i,j in enumerate(a):
    if solve(i,j,a):
        continue
    else:
        ans+=1
print(ans)

Submission status: Runtime Error

Solution code:
X,N = map(int,input().split())
p = list(map(int,input().split()))
min = 0
i = 0
count = 0
while True:
    if abs(X - i) == min:
        if i not in p:
            break
        elif i in p and min != 0:
            count += 1
            if count == 2:
                min += 1
                count = 0
                i = 0
        else:
            min += 1
            i = 0
    i += 1

print(i)

Submission status: Runtime Error

Solution code:
x = [0]
for i in range(1,6):
	x.append(int(input("Please input:\n")))
for j in range(1,5):
	if x[j] == 0:
		print(j)

Submission status: Runtime Error

Solution code:
for i in x(len(list)):
  if list[i] == 0:
    print i

Submission status: Runtime Error

Solution code:
y1 = input()
y2 = input()
y3 = input()
y4 = input()
y5 = input()

x1 = int(y1)
x2 = int(y2)
x3 = int(y3)
x4 = int(y4)
x5 = int(y5)

ls = [x1, x2, x3, x4, x5]

i = 0
while i < len(ls):
    if ls[i] == 0:
        print(i + 1)
    i += 1

Submission status: Runtime Error

Solution code:
cnt=0
x=list(map(int(),input().split()))
for i in x:
  if i==0:
    print(cnt)
    exit()
  cnt+=1

Submission status: Runtime Error

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

if A = 0:
    print(1)
elif B = 0:
    print(2)
elif C = 0:
    print(3)
elif D = 0:
    print(4)
else:
    print(5)

Submission status: Runtime Error

Solution code:
import numpy as np
import sys
x,N = map(int, input().split())

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

abs_list = []

for p in P:
  abs_list.append(np.abs(x-p))
  
if len(abs_list) == 0:
  print(x)
  sys.exit()
   
abs_max = max(abs_list)
for i in range(100):
  if abs_list.count(i) == 0:
    print(x-i)
    sys.exit()
  elif abs_list.count(i) == 1 and x+i in P and i !=0:
    print(x-i)
    sys.exit()
  elif abs_list.count(i) == 1 and x-i in P and i != 0:
    print(x+i)
    sys.exit()

Submission status: Runtime Error

Solution code:
import numpy as np

X,N = map(int,input().split())

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

X_near = np.array(list(range(int(np.ceil(X - N/2)), int(np.floor(X + N/2)) + 1)))

remain_list = []

for i in X_near:
    if i not in p_list:
        remain_list.append(i)
        
remain_array = np.array(remain_list)
min_bool = np.abs(X - remain_array).min() == np.abs(X - remain_array)
print(remain_array[min_bool].min())

Submission status: Runtime Error

Solution code:
for i in [i for i,x in enumerate(list) if x == 0]:
	print i

Submission status: Runtime Error

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


for i in range(1, N+1,1):
    # 足の数
    f = 2 * i + 4 * (N - i)
    if f == M:
        print('Yes')
        break
    elif N == M:
        print('No')
        break
    elif N >= M:
        print('No')
        break
else:
    print('No')

Submission status: Runtime Error

Solution code:
for i in [i for i,x in enumerate(list) if x == 0]:
	print i

Submission status: Runtime Error

Solution code:
# coding: utf-8
# Your code here!
x,n=map(int,input().split())
if n!=0:
    a=list(map(int,input().split()))
else:
    a=[0]*3
number=[0]*101

for num in range(len(a)):
    number[a[num]]=a[num]
    
counter=0
plus=0
ans=0

while counter==0:
    if number[x-plus]==0:
        counter+=1
        ans=x-plus
    elif number[x+plus]==0:
        counter+=1
        ans=x+plus
    else:
        plus+=1
        if plus>x or plus>(100-x):
            counter+=1
            ans=0

print(ans)

Submission status: Runtime Error

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

if A = 0:
    print(1)
elif B = 0:
    print(2)
elif C = 0:
    print(3)
elif D = 0:
    print(4)
else E = 0:
    print(5)
break

Submission status: Runtime Error

Solution code:
list = [1,2,3,5,3,1,2,1,6]
for x in list:
    if x == 0:
        print position

Submission status: Runtime Error

Solution code:
from sys import stdin

#l = list(map(int, stdin.readline().rstrip().split()))
a,b,c,d,e = map(int, stdin.readline().rstrip().split())
#S = [list(map(int, stdin.readline().rstrip().split())) for _ in range(h)]#hの定義を忘れずに

if a==0:
  print('1')
elif b==0:
  print('2')
elif c==0:
  pront('3')
elif d==0:
  print('4')
elif e==0:
  print('5')

Submission status: Runtime Error

Solution code:
import numpy as np

Xin, Yin = input().split()

X = int(Xin)
Y = int(Yin)

a = np.array([[1, 1], [2, 4]])
b = np.array([X, Y])

result = np.linalg.solve(a, b)

if result[0].is_integer() and result[0] >= 0:
    if result[1].is_integer() and result[1] >= 0:
      print('Yes')
    else:
      print('No')
else:
  print('No')

Submission status: Runtime Error

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

if A = 0:
    print(1)
elif B = 0:
    print(2)
elif C = 0:
    print(3)
elif D = 0:
    print(4)
else E = 0:
    print(5)

Submission status: Runtime Error

Solution code:
a=list(map(int,input().split())
for i in range(n):
       if a[i]==0:
       		print(i+1)
       		exit(0)

Submission status: Runtime Error

Solution code:
list = [1,2,3,4,0]
def pos_numbers():
  return [x for x in lst if x == 0]
print(x)

Submission status: Runtime Error

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

    if A == 0:
        print(1)
    elif B == 0:
        print(2)
    elif C == 0:
        print(3)
    elif D == 0:
        print(4)
    else E == 0:
        print(5)

Submission status: Runtime Error

Solution code:

def examD():
    def make_divisors(n):
        divisors = [1]
        for i in range(2, int(n ** 0.5) + 1):
            if n % i == 0:
                divisors.append(i)
                if i != n // i:
                    divisors.append(n // i)
        # divisors.sort()
        return divisors
    N = I()
    A = LI()
    C = set()
    D = set()
    ans = 0
    for a in A:
        if a in D:
            C.discard(a)
            continue
        D.add(a)
        C.add(a)

    for a in C:
        flag = 2
        cur = make_divisors(a)
        for c in cur:
            if c in D:
                flag -= 1
            if flag==0:
                break
        if flag>0:
            ans += 1
    print(ans)
    return

def examE():
    ans = 0
    print(ans)
    return

def examF():
    ans = 0
    print(ans)
    return


import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
def I(): return int(input())
def LI(): return list(map(int,sys.stdin.readline().split()))
def LSI(): return list(map(str,sys.stdin.readline().split()))
def LS(): return sys.stdin.readline().split()
def SI(): return sys.stdin.readline().strip()
global mod,mod2,inf,alphabet,_ep
mod = 10**9 + 7
mod2 = 998244353
inf = 10**18
_ep = 10**(-12)
alphabet = [chr(ord('a') + i) for i in range(26)]

sys.setrecursionlimit(10**7)

if __name__ == '__main__':
    examD()

"""
142
12 9 1445 0 1
asd dfg hj o o
aidn
"""

Submission status: Runtime Error

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

for int i range 5:
    if X[i] == 0:
        print(i)

Submission status: Runtime Error

Solution code:
p=input()

a="p"

b=a%10
c=a%100
d=a%1000
e=a%10000


if a%10==0:
print(5)
elif (a-b)%100==0:
print(4)
elif (a-c)%1000==0:
print(3)
elif (a-d)%10000==0:
print(2)
else:
print(1)

Submission status: Runtime Error

Solution code:
a = (x1,x2,x3,x4,x5)
index = a.index(0)
print (index)

Submission status: Runtime Error

Solution code:
n = input().spilt()
for i, j in range(n):
  if j == '0':
    print(i+1)
    exit()

Submission status: Runtime Error

Solution code:
A,B,C,D,E=map(int,input().split())
a=A
b=B
c=C
d=D
    if a == 0:
        print(1)
    elif b == 0:
        print(2)
    elif c == 0:
        print(3)
    elif d == 0:
        print(4)
    else e == 0:
        print(5)

Submission status: Runtime Error

Solution code:
X,Y = map(int,input().split())
if 2*X == Y or 4*X == Y or 3*X == Y or Y%X ==1 or Y%X == 2:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
s = input().split()
print(s.index['0'])

Submission status: Runtime Error

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

not_in_p = list(range(1,101))
for pn in p:
    if pn in not_in_p:
        not_in_p.remove(pn)

diff_p = []
for not_in_pn in not_in_p:
    diff_p.append(abs(not_in_pn - X))
min_value_index =  [j for j, value in enumerate(diff_p) if value == min(diff_p)]

answer = 0
for index in min_value_index:
    if answer == 0:
        answer = not_in_p[index]
    elif answer > not_in_p[index]:
        answer = not_in_p[index]

print(answer)

Submission status: Runtime Error

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

if Y % 2 == 1:
  print("No")
else:
  for x in range(S+1):
    y = S - x
    if 4*x + 2*y == Y:
      print("Yes")
      break
  else:
    print("No")

Submission status: Runtime Error

Solution code:
c=list(map(int, input().split()))
c = str(c)
c = c.find(0)
print(c)

Submission status: Runtime Error

Solution code:
x = [1, 2, 0, 4, 5]
n = 0

for i in x:
  if x[n] == 0:
    print n+1
    break;
  else:
    n += 1

Submission status: Runtime Error

Solution code:
from sys import stdin

x, n = [int(x) for x in stdin.readline().rstrip().split()]
if n > 0:
    P = [int(x) for x in stdin.readline().rstrip().split()]

memos = [False] * 102

for p in P:
    memos[p] = True

tgt = x
offset = 1
look_down = True
while True:

    if memos[tgt] == False:
        break
    if look_down:
        look_down = False
        tgt = tgt-offset
    else:
        look_down = True
        tgt = offset + offset
        offset += 1

print(tgt)

Submission status: Runtime Error

Solution code:
n = int(input())
a = list(map(int,input().split()))
a.sort(reverse = True)
p = 0

for i in range(n):
    j = i + 1
    for j in range(n):
        if i == j:
            pass
        elif a[i] % a[j] == 0:
            break
        else:
            pass
        if j == n - 1:
                p += 1

print(p)

Submission status: Runtime Error

Solution code:
A,B,C,D,E=map(int,input().split())
if A == 0:
  print(1)
elif B == 0:
  print(2)
elif C == 0:
  print(3)
elif D == 0:
  print(4)
else E == 0:
  print(5)

Submission status: Runtime Error

Solution code:
x,n=map(int,input().split())
try:
    p=list(map(int,input().split()))
    p.sort()
    min=abs(p[0])
    for i in range(p[0],p[n-1]):
        if i not in p:
            if min>abs(i-x):
                min=abs(i-x)
                ans=i
except:
    ans=x
print(ans)

Submission status: Runtime Error

Solution code:
N = int(input())
A = list(map(int,input().split()))
Adic={}
for i in range(N):
  if A[i] not in Adic:
    Adic[A[i]] = 1
  else:
    Adic[A[i]] += 1
Aset = set(A)
if 1 in Aset: #1がある場合
  if Adic[1] == 1:
    print(1)
  else:
    print(0)
  exit()
ans = 0
for j in range(N):
  Flag = True
  temp = A[j]
  i = 2
  if Adic[temp] >= 2:
    continue
  while i*i <= temp:
    #print(i,temp)
    if temp%i == 0:
      #print(i,temp//i,temp)
      if i in Aset or temp//i in Aset:
        Flag = False
        #print(i,temp//i,"X")
        break
    i += 1
  if not Flag:
    continue
  ans += 1
print(ans)

Submission status: Runtime Error

Solution code:
x = [0, 2, 3, 4, 5]
n = 0

for i in x:
  if x[n] == 0:
    print n+1
    break;
  else:
    n += 1

Submission status: Runtime Error

Solution code:
a,b =map(int,input().split())
c = 1
for i in range(0,a+1):
    if 2*i+4*(a-i) ==b:
      c = 0
      break
if c ==0:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

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

for i in range(0,X):
    foot = 2*i+4*(X-i)
    if foot==Y:
        print('Yes')
        break
else:
    print('No')

Submission status: Runtime Error

Solution code:
a=input()

b=a%10
c=a%100
d=a%1000
e=a%10000


if a%10==0:
print(5)
elif (a-b)%100==0
print(4)
elif (a-c)%1000==0
print(3)
elif (a-d)%10000==0
print(2)
else
print(1)

Submission status: Runtime Error

Solution code:
n = int(input())
a = list(map(int,input().split()))
a.sort()
print(a)
p = 0

for i in range(n):
    for j in range(n):
        if i == j:
            pass
        elif a[i] % a[j] == 0:
            break
        else:
            pass
        if j == n - 1:
                p += 1

print(p)

Submission status: Runtime Error

Solution code:
X,N = map(int, input().split())
if N ==0:
  print(X)
  exit() 
if N !=0:
  p = list(map(int, input().split()))
if p.count(X) == 0:
  print(X)
  exit()
for a in range(1000):
  if p.count(X-a) ==0:
    print(X-a)
    exit()
  elif p.count(X+a) ==0:
    print(X+a)
    exit()

Submission status: Runtime Error

Solution code:
import math
X, Y = map(int,input().split())
ans = "No"
for i in range(X):
  if(2*X+2*i==Y):
    ans = "Yes"
print(ans)

Submission status: Runtime Error

Solution code:
def read():
    total = 0
       	for line in f:
            line = line.strip()
            tokens = line.split()
            print(tokens) 
            name = tokens[0]
            num = int(tokens[1])
            single = int(tokens[2])
            total += num * single
            print(name, num * single)
        print('total: ', total)
read()

Submission status: Runtime Error

Solution code:
x = list(map(lambda x:int(x), input().split()))
X = x[0]
N = x[1]
p = []
if N != 0:
  p = list(map(lambda x:int(x), input().split()))

near = [False]*102
#print(near)
#print(near[200])

for i in p:
  near[i] = True
  
for i in range(0,100):
  if not near[X-i]:
    print(X-i)
    break
  elif not near[X+i]:
    print(X+i)
    break

Submission status: Runtime Error

Solution code:
import numpy as np

def resolve():
    x, n = map(int, input().split())
    if n == 0:
        print(x)
        return
    P = set(map(int, input().split()))
    if x not in P:
        print(x)
        return

    P_not = np.array(list(set(list(range(1, 101))) - P))
    diff = np.abs(P_not - x)
    print(P_not[diff.argmin()])

resolve()

Submission status: Runtime Error

Solution code:
x,n=map(int,input().split())
import sys
if n==0:
    _=input()
    print(x)
    sys.exit()
    
p_list=list(map(int,input().split()))
r=list(range(100))
a=list(set(r)-set(p_list))

ans=100000
kkk=100000
for i in a:
    tem=abs(i-x)
    if ans>tem:
        ans=tem
        kkk=i
    
print(kkk)

Submission status: Runtime Error

Solution code:
import os
from sys import stdin

seq = list(map(int, stdin.readline().split()))
for i in range(len(seq)):
    if seq[i]==0:
        print(i+1)
        return

Submission status: Runtime Error

Solution code:
x,y = map(int,input().split())
if y>=2*x and y<=4*x and y%2==0:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
A, B, C, D, E = map(int, input().split())
if A == 0:
    print(1)
elif B == 0:
    print(2)
elif C == 0:
    print(3)
elif D == 0:
    print(4)
else E == 0:
    print(5)

Submission status: Runtime Error

Solution code:
import sys

def main(args):
    # given = [(i, int(args[i])) for i in range(len(args))]
    # ans = sorted(given, key=lambda elm: elm[1])
    # print(ans[0][1]+1)

    ans = [1,2,3,4,5]
    given = [int(i) for i in args]

    for i in range(len(ans)):
        if ans[i] != given[i]:
            print(ans[i])
            return 0

main(sys.argv)

Submission status: Runtime Error

Solution code:
X=int(input())
Y=int(input())

crain = (4 * X - Y) / 2
if crain.is_integer() and crain > 0:
    crain = int(crain)
    print("yes")
else:
    print("no")

Submission status: Runtime Error

Solution code:
import os
from sys import stdin

seq = list(map(int, stdin.readline().split()))
for i in range(len(seq)):
  if seq[i]==0:
    print(i+1)
    return

Submission status: Runtime Error

Solution code:
import sys

def main(args):
    # given = [(i, int(args[i])) for i in range(len(args))]
    # ans = sorted(given, key=lambda elm: elm[1])
    # print(ans[0][1]+1)

    ans = [1,2,3,4,5]
    given = [int(i) for i in args]

    for i in range(len(ans)):
        if ans[i] != given[i]:
            print(ans[i])
            return 0

main(sys.argv[1:])

Submission status: Runtime Error

Solution code:
X,Y = map(float,input().split())

if (1 <= X <= 100) and (1 <= Y <= 100 ) and float.is_integer(X) and float.is_integer(Y) :
    if Y % 2 == 0:
        if Y / X <= 4:
            print("Yes")
            print()

        else:
            print("No")
    else: 
        print("No")

Submission status: Runtime Error

Solution code:
import sys

def main(args):
    # given = [(i, int(args[i])) for i in range(len(args))]
    # ans = sorted(given, key=lambda elm: elm[1])
    # print(ans[0][1]+1)

    ans = [1,2,3,4,5]
    given = [int(i) for i in args]

    for i in range(len(ans)):
        if ans[i] != given[i]:
            print(ans[i])
            break

main(sys.argv[1:])

Submission status: Runtime Error

Solution code:
arr = [int(x) for x in input().split()]
for i, a in enumerate(arr, 1):
    if a == 0:
        return i

Submission status: Runtime Error

Solution code:
A,B,C,D,E=map(int,input().split())
    if A == 0:
    print(1)
    elif B == 0:
    print(2)
    elif C == 0:
    print(3)
    elif D == 0:
    print(4)
    else E == 0:
    print(5)

Submission status: Runtime Error

Solution code:
a, b, c, d, e=(int(x) in input().split())
list=[a, b, c, d, e]
for num in list:
  if num=1:
    print((list.index(num))+1)

Submission status: Runtime Error

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

X, Y = map(int, input().split())

# a + b = X
# 2a + 4b = Y
# --
# b = (Y-2X) / 2

b = (Y - 2 * X) / 2.0
a = X - b

if a.is_integer() and b.is_integer() and a >= 0 and b >= 0:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
x1 = input()
x2 = input()
x3 = input()
x4 = input()
x5 = input()

ls = [x1, x2, x3, x4, x5]

i = 0
while i < len(ls):
    if ls[i] == 0:
        print(i+1)
    i += 1

Submission status: Runtime Error

Solution code:
c=list(map(int, input().split()))
print(c.find(0))

Submission status: Runtime Error

Solution code:
def code(nums)
 i = 0
  for num in nums
   i += 1 
     if num[i] == 0
       return i

Submission status: Runtime Error

Solution code:
a,b =map(int,input().split())
c = 1
for i in range(a):
  if (b-2*i)%4==0:
    c = 0
    break
if c ==1:
  print("No")
else:
  print("Yes")

Submission status: Runtime Error

Solution code:
a, b, c, d, e = map(int,input().split())
if a = 0:
　　　　print(‘1’)
elif b = 0:
　　　　print(‘2’)
elif c = 0:
　　　　print(‘3’)
elif d = 0:
　　　　print(‘4’)
else: 
　　　　print('5')

Submission status: Runtime Error

Solution code:
ind = 1
for i in a:
    if i == '0':
        print(ind)
        break
    ind += 1

Submission status: Runtime Error

Solution code:
x = [1 2 0 4 5]
for i in x;
	if x == 0;
  		print(x+1)
    break
    else;
    x += 1

Submission status: Runtime Error

Solution code:
a,b =map(int,input().split())
c = 1
for i in range(a-1):
  if (b-2*i)%4==0:
    c = 0
    break
if c ==1:
  print("No")
else:
  print("Yes")

Submission status: Runtime Error

Solution code:
nums = [int(e) for e in input().split()]
for i in range(5):
  if not xs[i] == i:
    print(i)
    break

Submission status: Runtime Error

Solution code:
import sys

def main(args):
    ans = [1,2,3,4,5]
    given = [int(i) for i in args]

    for i in range(len(ans)):
        if ans[i] != given[i]:
            print(i)
            break

main(sys.argv[1:])

Submission status: Runtime Error

Solution code:
for i in range(0, 5):
  k = import()
  if k == 0:
    j = i
    
print(j)

Submission status: Runtime Error

Solution code:
nums = list(map(int, input().split()))
ans = -1
for i in nums:
    if nums[i] == 0:
        print(i)

Submission status: Runtime Error

Solution code:
import sys

def main(args):
    ans = [1,2,3,4,5]
    given = [int(i) for i in args]

    for i in range(len(ans)):
        if ans[i] != given[i]:
            print(i)
            break


if __name__ == '__main__':
    main(sys.argv[1:])

Submission status: Runtime Error

Solution code:
a,b =map(int,input().split())
c = 1
for i in range(a-1):
  if (b-2*i)%4==0:
    c = 0
    break
if c ==1:
  print("No")
else:
  print("Yes")

Submission status: Runtime Error

Solution code:
X,Y = map(int, input().split())
for f4 in range(0,X+1,1):
  if Y==(f4*4)+((X-f4)*2):
    print('Yes')
    exit()
print('No')

Submission status: Runtime Error

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

num = 0

for i in range(5):
	num += 1
    if x[i] == 0:
      break

print(num)

Submission status: Runtime Error

Solution code:
def sunuke(a, b, c, d, e):
  a, b, c, d, e=(int(x) for x input().split())
  list=[a, b, c, d, e]
  for num in list:
    if num==1:
      print(list.index(num)+1)

Submission status: Runtime Error

Solution code:
a = int(input())
print(a.find('0'))

Submission status: Runtime Error

Solution code:
A,B,C,D,E=map(int,input().split())
    if A == 0:
        print('1')
    elif B == 0:
        print('2')
    elif C == 0:
        print('3')
    elif D == 0:
        print('4')
    else E == 0:
        print('5')

Submission status: Runtime Error

Solution code:
a,b,c,d,e = map(int,input(). split ())
for i in 5:
    if i * 1 == 0:
        print(i)

Submission status: Runtime Error

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

f = False
for num_of_tsuru in range(0, x+1):
    num_of_kame = x - num_of_tsuru
    if (2*num_of_tsuru) + (4*num_of_kame) == y:
        f = True
        break

if f:
    print('Yes')
else:
    print('No')

Submission status: Runtime Error

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

index = a.find(0)
print(index)

Submission status: Runtime Error

Solution code:
X,Y=map(int,input().split())
for i in range(X+1):
  if Y==2*i+4*(X-i):
    print('YES')
    exit()
print('NO')

Submission status: Runtime Error

Solution code:
print(input().index()//2+1)

Submission status: Runtime Error

Solution code:
g=[]
a, b, c, d, e = map(int,input().split())
for i in a, b, c, d, e, f:
    g.append(i)
print(g.index(0)+1)

Submission status: Runtime Error

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

i=1
while i<=len(x):
    
    if x[i]==0:
        print(i)
    
    i+=1

Submission status: Runtime Error

Solution code:
x1, x2, x3, x4, x5 = int(input().split( ))
x = []
x.append(x1)
x.append(x2)
x.append(x3)
x.append(x4)
x.append(x5)
ans = 0
for i, j in enumerate(x):
  if i+1 != j:
  	ans = j
print(type(0 2 3 4 5),j)

Submission status: Runtime Error

Solution code:
x,y=map(int,input().split())
a=0
s=0

for i in range(x+1):
    for k in range(x-i+1):
        a=4*i+2*k

        if a==y:
            s+=1

if s>=1:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
arr = [0, 2, 3, 4, 5]
if x == 0;
	print(arr[i])

Submission status: Runtime Error

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

num = 0

for i in range(len(x)):
	num += 1
    if x[i] == 0:
      print(num)
      break

Submission status: Runtime Error

Solution code:
A,B,C,D,E=map(int,input().split())
if A == 0:
    print(1)
elif B == 0:
    print(2)
elif C == 0:
    print(3)
elif D == 0:
    print(4)
else E == 0:
    print(5)

Submission status: Runtime Error

Solution code:
xs[5] = []
for i in range(5):
  xs.append(int(input()))
  if not xs[i] = i:
    print i
    break

Submission status: Runtime Error

Solution code:
a = int(input())
print(a.find(0))

Submission status: Runtime Error

Solution code:
A = Input()
A = A.split()

B = []
for x in A:
    y = int(x)
    B.append(y)

c = [1, 2, 3, 4, 5]
for x in range(len(B)):
    if B[x] != c[x]:
        z = x+1
        print(z)

Submission status: Runtime Error

Solution code:
x1, x2, x3, x4, x5 = int(input().split())
x = list()
x.append(x1)
x.append(x2)
x.append(x3)
x.append(x4)
x.append(x5)
ans = 0
for i, j in enumerate(x):
  if i+1 != j:
  	ans = j
print(type(0 2 3 4 5),j)

Submission status: Runtime Error

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

print(x.index("0")+1)

Submission status: Runtime Error

Solution code:
from sys import stdin

x, y = [int(x) for x in stdin.readline().rstrip().split()]


if y < 2*x or 4*x < y:
    print('No')
else:
    if (4*x-y) % 2 == 0:
        print('Yes')
    else:
        print('No')

Submission status: Runtime Error

Solution code:
ip = map(int, input().split())
print(ip.index(0)+1)

Submission status: Runtime Error

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

for i in range(x+1):
  if i*2+(x-i)*4 == y:
    print("Yes")
    exit()
    
print("No")

Submission status: Runtime Error

Solution code:
A = Input()
A = A.split()

B = []
for x in A:
y = int(x)
B.append(y)

C = [1, 2, 3, 4, 5]
for x in range(len(B)):
if B[x]!=C[x]:
z = x +1
print(z)

Submission status: Runtime Error

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

ans = list.index(0) + 1
print(ans)

Submission status: Runtime Error

Solution code:
g=[]
a, b, c, d, e = map(int,input().split())
for i in a, b, c, d, e, f:
    g.append(i)
h=g.index(0)
print(h+1)

Submission status: Runtime Error

Solution code:
X = [for int(i) in input().split()]
for c, x in enumerate(X):
  if x == 0:
  	print(c)

Submission status: Runtime Error

Solution code:
x1, x2, x3, x4, x5 = int(input().split())
x = list()
x.append(x1)
x.append(x2)
x.append(x3)
x.append(x4)
x.append(x5)
ans = 0
for i, j in enumerate(x):
  if i+1 != j:
  	ans = j
print(j)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
X = [for int(i) in input().split()]
for c, x in X:
  if x == 0:
  	print(c)

Submission status: Runtime Error

Solution code:
A,B,C,D,E=map(int,input().split())
    if A =0:
        print(1)
    elif B = 0:
        print(2)
    elif C = 0:
        print(3)
    elif D = 0:
        print(4)
    else E = 0:
        print(5)

Submission status: Runtime Error

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

c = 0
for x in l:
    if x == 0:
        print(c)
    c++

Submission status: Runtime Error

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

num = 0

for i in x:
	num += i
    if x[i]==0:
    	break
print(num)

Submission status: Runtime Error

Solution code:
g=[]
a, b, c, d, e, f = map(int,input().split())
for i in a, b, c, d, e, f:
    g.append(i)
h=g.index(0)
print(h+1)

Submission status: Runtime Error

Solution code:
X = map(int, input().split())
for i in range(len(X)):
  if X[i] == 0:
    print(i+1)
    break

Submission status: Runtime Error

Solution code:
from sys import stdin

x, y = [int(x) for x in stdin.readline().rstrip().split()]


if y < 2*x and 4*x < y:
    print('No')
else:
    if (4*x-y) % 2 == 0:
        print('Yes')
    else:
        print('No')

Submission status: Runtime Error

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

if y%2==0 and y/x<=4 and y/x>=2:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
x1, x2, x3, x4, x5 = int(input().split())
x = list()
x.append(x1)
x.append(x2)
x.append(x3)
x.append(x4)
x.append(x5)
ans = 0
for i, j in enumerate(x):
  if i+1 != j
  ans = j
print(j)

Submission status: Runtime Error

Solution code:
A,B,C,D,E=map(int,input().split())
    if A == 0:
        print(1)
    elif B == 0:
        print(2)
    elif C == 0:
        print(3)
    elif D == 0:
        print(4)
    else E == 0:
        print(5)

Submission status: Runtime Error

Solution code:
import io,sys
sys.setrecursionlimit(10**6)


def main():
    X,Y = map(int,sys.stdin.readline().rstrip().split())

    y = (Y-2*X)/2
    x = X-y

    if y>=0 and y == int(y) and x >= 0:
        print("Yes")
    else:
        print("No")
main()

Submission status: Runtime Error

Solution code:
x = [0, 2, 3, 4, 5]
n = 0

for i in x:
  if x[n] == 0:
    print n+1
    break;
  else:
    n += 1

Submission status: Runtime Error

Solution code:
x,y = map(int,input().split())
 
ans = 0
for i in range(x+1):
    f = (2*i) + 4*(x-i)
    if  f == y:
        print("Yes")
        exit()
 
print("No")

Submission status: Runtime Error

Solution code:
xs[5] = []
for i in range(5):
  xs.append(int(input()))
  if not xs[i] == i:
    print i
    break

Submission status: Runtime Error

Solution code:
for num in range(0, 5, 1):
    x = int(input())
    if x == 0:
        print(num + 1)
        exit()

Submission status: Runtime Error

Solution code:
X,Y = map(int, input().split())
for f4 in range(0,X+1,1):
  if Y==(f4*4)+((X-f4)*2):
    print('Yes')

Submission status: Runtime Error

Solution code:
for i in range(1,6):
    number = input()
    if number == '0':
        print(i)