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

Solution (Python):
s=input()
lst=s.split()
print(str(lst.index("0") + 1))

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

b = A.index(0)
if 0 in A:
    print(b + 1)
    exit()

Solution (Python):
A=list(input().split())
print(A.index("0")+1)

Solution (Python):
x = input()
x = x.split(' ')
j = 1
for i in x:
  if i == '0':
    print(j)
  j = j+1

Solution (Python):
li = list(map(int,input().split()))
print(li.index(0)+1)

Solution (Python):
x = list(map(int,input().split()))
count = 1
for i in x:
  if i == 0:
    print(count)
    break
  else:
    count += 1

Solution (Python):
a = list(map(int,input().split()))
j=0
for i in a:
  j = j+1
  if i==0:
    print(j)

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

L = [0]*5
ans = 1
for i, order in enumerate(x,1):
   if order == 0:
       ans = i
print(ans)

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

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

for i in range(5):
    if(l[i] == 0):
        a = i+1
    
print(a)

Solution (Python):
import math
from collections import defaultdict
ml=lambda:map(int,input().split())
ll=lambda:list(map(int,input().split()))
ii=lambda:int(input())
ip=lambda:list(input())
ips=lambda:input().split()

"""========main code==============="""

a=ll()
for i in range(5):
    if(a[i]==0):
        print(i+1)
        break

Solution (Python):
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)
elif e == 0:
  print(5)

Solution (Python):
def getN():
    return int(input())
def getNM():
    return map(int, input().split())
def getList():
    return list(map(int, input().split()))

from collections import defaultdict, deque, Counter
from sys import exit
import math
import copy
from bisect import bisect_right

import sys
sys.setrecursionlimit(1000000)
import heapq
INF = 10**10

def dijkstra(graph, start, n):
    h = []
    heapq.heappush(h, (0, start))
    costs = [INF for _ in range(n)]
    while h:
     cost, cur = heapq.heappop(h)
     if costs[cur] != INF:
         continue
     costs[cur] = cost
     for edge in graph[cur]:
         ecost, tgt = edge
         if costs[tgt] == INF:
             heapq.heappush(h, (cost + ecost, tgt))

    return costs

def main():
    nums = getList()
    for i in range(5):
        if nums[i] == 0:
            print(i+1)
            return
if __name__ == "__main__":
    main()

Solution (Python):
src = list(map(int,input().split()))
ans = src.index(0)
print(ans+1)

Solution (Python):
A= map(int,input().split())
lists= list(A)
if lists[0]==0:
    print(1)
if lists[1]==0:
    print(2)
if lists[2]==0:
    print(3)
if lists[3]==0:
    print(4)
if lists[4]==0:
    print(5)

Solution (Python):
a, b, c, d, e =map(int,input().split())
L=[a,b,c,d,e]

for i in L:
	if i == 0:
		print(L.index(i) + 1)

Solution (Python):
x1,x2,x3,x4,x5 = list(map(int, input().split()))

if x1 == 0:
  print(1)
if x2 == 0:
  print(2)
if x3 == 0:
  print(3)
if x4 == 0:
  print(4)
if x5 == 0:
  print(5)

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

Solution (Python):
x1,x2,x3,x4,x5 = input().split()

if int(x1) == 0:
  print(1)
elif int(x2) == 0:
  print(2)
elif int(x3) == 0:
  print(3)
elif int(x4) == 0:
  print(4)
else:
  print(5)

Solution (Python):
number = input().split()
count = 0

for i in number:
    count += 1
    if i == "0":
        break
    


print(count)

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

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

Solution (Python):
x=list(map(int,input().split()))
print(x.index(0)+1)

Solution (Python):
x = list(map(int, input().split()))
for index, i in enumerate(x, 1):
  if i == 0:
    print(index)

Solution (Python):
xs = list(map(int, input().split(' ')))
print(xs.index(0)+1)

Solution (Python):
def main():
    lst_n = [int(v) for v in input().split(' ')]
    for i, n in enumerate(lst_n):
        if n == 0:
            print(int(i + 1))


if __name__ == '__main__':
    main()

Solution (Python):
list_str = input().split(" ")
list_num = []
for i in range(5):
    list_num.append(int(list_str[i]))

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

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

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

Solution (Python):
def a():
    A = list(map(int, input().split()))
    print(A.index(0) + 1)



if __name__ == "__main__":
    a()

Solution (Python):

def main():
    xs = list(map(int, input().split()))
    ans = xs.index(0) + 1
    print(ans)

if __name__ == '__main__':
    main()

Solution (Python):
x = list(map(int, input().split()))
a=0
for i in range(5):
    if x[i] == 0:
        a = i
        continue
print(a+1)

Solution (Python):

from sys import stdin
from operator import itemgetter
from collections import deque, Counter
import math
import pprint
from functools import reduce


MOD = 1000000007

def keta(kazu):
    kazu_str = str(kazu)
    kazu_list = [int(kazu_str[i]) for i in range(0, len(kazu_str))]
    return kazu_list

def gcd(*numbers):
    return reduce(math.gcd, numbers)

def combination(m,n):
    
    if n > m:
        return 'すまん'
    return math.factorial(m) // (math.factorial(m-n) * math.factorial(n))

def pow_k(x,n):  
    if n == 0:
        return 1
    K = 1
    while n > 1:
        if n % 2 != 0:
            K *= x
        x *= x
        n //= 2
    return K * x
    
def main():
    x = list(map(int,[int(x) for x in stdin.readline().rstrip().split()]))
    print(x.index(0)+1)
main()

Solution (Python):
import sys
def I(): return int(sys.stdin.readline().rstrip())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def S(): return sys.stdin.readline().rstrip()
def LS(): return list(sys.stdin.readline().rstrip().split())

li = LI()
for l in li:
  if l != li.index(l) + 1:
    print(li.index(l) + 1)

Solution (Python):
x = list(map(int, input().split()))
print(x.index(0) + 1)

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

for i, n in enumerate(X, 1):
    a = i == n
    if a == False:
        print(i)

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

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

Solution (Python):
X = list(map(int,input().split()))
print(X.index(0)+1)

Solution (Python):
import sys
sys.setrecursionlimit(300000)

def I(): return int(sys.stdin.readline())
def MI(): return map(int, sys.stdin.readline().split())
def MI0(): return map(lambda s: int(s) - 1, sys.stdin.readline().split())
def LMI(): return list(map(int, sys.stdin.readline().split()))
def LMI0(): return list(map(lambda s: int(s) - 1, sys.stdin.readline().split()))
MOD = 10 ** 9 + 7
INF = float('inf')


X = LMI()
print(X.index(0) + 1)

Solution (Python):
xs = []
xs = map(int,input().split())



for i,num in enumerate(xs):
    if num == 0:
        print(i+1)

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


def index(a, x):
    if x in a:
        return a.index(x)

aa = index(a, 0)
print(aa + 1)

Solution (Python):
S = input().split(' ')
print(S.index('0') + 1)

Solution (Python):
input_list = list(map(lambda x:int(x),input().split(" ")))
[print(i+1) for i in range(len(input_list)) if input_list[i]!=i+1]

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

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

Solution (Python):
arr=[int(i) for i in input().split()]
for i in range(1,6):
    if not arr[i-1]:
        print(i)
        break

Solution (Python):
a= input().split()
b=a.index("0")
print(b+1)

Solution (Python):
import sys

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

i = 1
for v in arr:
    if(v == 0):
        print(i)
        sys.exit()
    i += 1

Solution (Python):
x = list(map(int,input().split()))
print(x.index(0)+1)

Solution (Python):
a = list(map(int,input().split()))
for e,i in enumerate(a):
    if i == 0:
        print(e+1)
        break

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

for i, num  in enumerate(nums):
  if num == 0:
    print(i+1)
    break

Solution (Python):
print(list(map(int,input().split())).index(0)+1)

Solution (Python):
l = input().split()
print(l.index(min(l))+1)

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

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

Solution (Python):
def main():
  x = list(map(int, input().split()))
  print(x.index(0)+1)
  
main()

Solution (Python):
x = input().split()
print(x.index('0') + 1)

Solution (Python):

n = []

n = input().split()

for i in range(5):
    n[i] = int(n[i])

for i in range(5):
    if n[i] == 0:
        print(i+1)

Solution (Python):
X = [int(x) for x in input().split()]
print(X.index(0) + 1)

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

for i in range(5):
  if a[i] == 0:print(i+1)

Solution (Python):
arr = list ( map ( int , input().strip().split(" ") ) ) ;
print (  arr.index( 0 ) + 1 ) ;

Solution (Python):
li = list(map(int,input().split()))
ans = 0
for i in range(len(li)):
    if li[i] == 0:
        ans = i
print(ans+1)

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

for a in range(5):
    if alist[a] == 0:
        print(a + 1)
        exit(0)

Solution (Python):
print(input().index("0")//2+1)

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

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

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

Solution (Python):
x = input().split()
x = [int(i) for i in x]
print(x.index(0)+1)

Solution (Python):
l=list(map(int,input().split()))
print(l.index(0)+1)

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

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

Solution (Python):

c = input().split()


print(c.index('0')+1)

Solution (Python):
x = list(map(int, input().split()))
ans = x.index(0) + 1
print(ans)

Solution (Python):
x = list(map(int,input().split()))
print(x.index(0)+1)

Solution (Python):
ins = input().split(" ")
for e, i in enumerate(ins):
  if i == "0":
    print(e+1)

Solution (Python):
L = list(map(int, input().split()))
print(L.index(0)+1)

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

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

Solution (Python):


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

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

Solution (Python):
arr = list(map(int, input().split()))
print(15-sum(arr))

Solution (Python):
s = list(map(int, input().split()))
for i,y in enumerate(s):
    if int(y) == 0:
        print(i+1)

Solution (Python):


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

if __name__ == '__main__':
    main()

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

print(x.index(0)+1)

Solution (Python):
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)

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

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

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

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

Solution (Python):
a,b,c,d,e=map(int,input().split())
a,b,c,d,e=int(a),int(b),int(c),int(d),int(e)
sum=a+b+c+d+e
if sum==14:
    print(1)
elif sum==13:
    print(2)
elif sum==12:
    print(3)
elif sum==11:
    print(4)
elif sum==10:
    print(5)

Solution (Python):
import numpy
input_x = [int(i) for i in input().split(" ")]
for i in range(5):
    if not i+1 in input_x:
        print(i+1)

Solution (Python):

i=1
x = list(map(int, input().split()))

for j in x:
    if j==0:
        ans=i
    else:
        i=i+1


print(ans)

Solution (Python):
x = list(map(int, input().split()))
print(x.index(0)+1)

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

print(d.index(0)+1)

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

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

Solution (Python):
x1,x2,x3,x4,x5 = map(int,input().split())

if x1 != 1:
  print(1)
elif x2 != 2:
  print(2)
elif x3 != 3:
  print(3)
elif x4 != 4:
  print(4)
else:
  print(5)

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

for i in range(5):
  if x[i] != i + 1:
    print(i+1)

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

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

print(ans)

Solution (Python):
x = [int(i)for i in input().split()]

print(x.index(0)+1)

Solution (Python):
import os
import numpy as np

if os.path.exists('input.txt'):
    test_mode = True
else:
    test_mode = False

if test_mode:
    f = open('input.txt')
    
def get_input():
    if test_mode:
        return f.readline().rstrip()
    else:
        return input().rstrip()

x = get_input().split()
for x_i in x:
    if int(x_i) == 0:
        print(x.index(x_i) + 1)
        break

if test_mode:
    f.close()

Solution (Python):
line = list(map(int, input().split()))
cnt = 1
for num in line:
    if num == 0:
        print(cnt)
        exit()

    cnt+=1

Solution (Python):
import sys, bisect, math, itertools, string, queue, copy



from collections import Counter,defaultdict,deque
from itertools import permutations, combinations, combinations_with_replacement
from heapq import heappop, heappush, heapify
from fractions import gcd

sys.setrecursionlimit(10**8)
mod = 10**9+7
def inp(): return int(input())
def inpm(): return map(int,input().split())
def inpl(): return list(map(int, input().split()))
def inpls(): return list(input().split())
def inplm(n): return list(int(input()) for _ in range(n))
def inplL(n): return [list(input()) for _ in range(n)]
def inplT(n): return [tuple(input()) for _ in range(n)]
def inpll(n): return [list(map(int, input().split())) for _ in range(n)]
def inplls(n): return sorted([list(map(int, input().split())) for _ in range(n)])

def main():
    x = inpl()
    for i in range(5):
        if x[i] != i+1:
            print(i+1)
            return
    
if __name__ == "__main__":
    main()

Solution (Python):
x = []
x = list(map(int, input().split()))
i = 0
for i in range(5):
    if(x[i] == 0):
        print(i+1)

Solution (Python):
A = list(map(int, input().split())) 
for j,i in enumerate(A):
  if i == 0:
    print(j+1)

Solution (Python):
num = list(map(int, input().split()))
print(num.index(0)+1)

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

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

Solution (Python):
x = list(map(int, input().split()))
print(x.index(0) + 1)

Solution (Python):
import sys
def input():
    return sys.stdin.readline()[:-1]


def test():
    
    x = input().split()
    print(x.index("0") + 1)

test()

Solution (Python):
x=list(map(int,input().split()))
for i in range(5):
    if x[i]==0:
        print(i+1)

Solution (Python):
import math
l=list(map(int,input().split()))
for i in range(len(l)):
	if l[i]==0:
		break
print(i+1)

Solution (Python):
if __name__ == "__main__":
  l = list(map(int, input().split()))
  loc = 0
  for i in range(0, l.__len__()):
    if l[i] == 0:
      loc = i+1
      break
  print(loc)

Solution (Python):
xs = map(int, open(0).read().split())
for i, x in enumerate(xs):
    if x == 0:
        print(i + 1)

Solution (Python):
x = input().split()
for i in range(len(x)):
  if x[i] == str("0"):
    print(i+1)
    break

Solution (Python):
a=input()

n=a.replace(" ", "")

f=n.find("0")

print(f+1)

Solution (Python):
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)

Solution (Python):
A = [int(x) for x in input().split()]
N = int(len(A))

for i in range(N):
  if A[i]-0==0:
    print(i+1)

Solution (Python):
a, b, c, d, e = list(map(int, input().strip().split()))
if a == 0:
    print('1')
if b == 0:
    print('2')
if c == 0:
    print('3')
if d == 0:
    print('4')
if e == 0:
    print('5')

Solution (Python):
x = [int(i) for i in input().split()]
print(x.index(0)+1)

Solution (Python):
a,b,c,d,e = map(int,input().split())

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

Solution (Python):
lst = list(map(int, input().split()))
cnt = 1
for l in lst:
    if l == 0:
        print(cnt)
        break
    cnt += 1

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

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

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

count = 0
for i in s:
    if i != 0:
        count+=1
    elif i == 0:
        count+=1
        print(count)

Solution (Python):
x = input().split()
print(x.index('0') + 1)

Solution (Python):
a,b,c,d,e =map(int,input().split())
print(15-a-b-c-d-e)

Solution (Python):
X=list(map(int,input().split()))
for i in range(5):
  if X[i]==0:
    print(i+1)

Solution (Python):
A = list(map(int, input().split())) 
for j,i in enumerate(A):
  if i == 0:
    print(j+1)

Solution (Python):
a=input().split(' ')

b=[]
for i in range(5):
  b.append(int(a[i]))

for i in range(5):
  if b[i]==0:
    print (i+1)

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

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

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

Solution (Python):
a , b ,c ,d ,e = map(int, input().strip().split())
 
list = []
list.append(a)
list.append(b)
list.append(c)
list.append(d)
list.append(e)
count = 0
for i in range(0, len(list)):
    if list[i]==0:
        count = i+1
        break
print(count)

Solution (Python):
A = list(map(int, input().split()))
for i in range(5):
    if not A[i]:
        print(i+1)

Solution (Python):
input = input().split()
count = 1
for i in input:
  if i == '0':
    print(str(count))
    break
  count = count + 1

Solution (Python):
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

l = list(map(int, readline().split()))
print(int(l.index(0))+1)

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

Solution (Python):
x = input().split()
print(x.index("0")+1)

Solution (Python):
x_list = list(map(int, input().split()))
for i in range(5):
    if x_list[i] == 0:
        print(i + 1)

Solution (Python):
import numpy as np
a = np.array([int(x) for x in input().split()])
for i,j in enumerate(a):
    if j ==0:
        print(i+1)
        break

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

Solution (Python):
x = list(map(int, input().split()))
print(x.index(0) + 1)

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

Solution (Python):
A=list(map(int, input().split()))
print(A.index(0)+1)

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

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

Solution (Python):
X = [int(_) for _ in input().split()]

print(X.index(0) + 1)

Solution (Python):
a,b,c,d,e=map(int,input().split())
x=[a,b,c,d,e]

if x[0]==0:
    print(1)
elif x[1]==0:
    print(2)
elif x[2]==0:
    print(3)
elif x[3]==0:
    print(4)
else:
    print(5)

Solution (Python):
a=list(map(int,input().split()))
count=1
for x in a:
  if x!=0:
    count+=1
  else:
    break
print(count)

Solution (Python):
x1, x2, x3, x4, x5 = map(int,input().split())
if x1 == 0:
    print(1)
elif x2 == 0:
    print(2)
elif x3 == 0:
    print(3)
elif x4 == 0:
    print(4)
else:
    print(5)

Solution (Python):
x1, x2, x3, x4, x5 = map(int,input().split())

if x1 == 0:
    print("1")

elif x2 == 0:
    print("2")

elif x3 == 0:
    print("3")

elif x4 == 0:
    print("4")

else:
    print("5")

Solution (Python):
a = list(map(int,input().split()))
for i,val in enumerate(a):
    if val == 0:
        print(i+1)
        break

Solution (Python):
x = list(map(int, input().split()))
print(x.index(0)+1)

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

for i, y in enumerate(x, 1):
    if y==0:
        print(i)
        break

Solution (Python):
import sys
import math

l=list(map(int,input().split()))
l2=[False]*6
for i in range(5):
    l2[l[i]]=True
for i in range(len(l2)):
    if l2[i]==0:
        print(i)
        break

Solution (Python):
vs = list(map(int,input().split()))
for i in range(len(vs)):
    if vs[i] == 0:
        print(i+1)

Solution (Python):
a,b,c,d,e = map(int,input().split())
li = [a,b,c,d,e]
print(li.index(0)+1)

Solution (Python):
list_a = list(map(int, input().split()))
list_b = list(range(1,6))
for i in range(len(list_a)):
  if list_a[i]!=list_b[i]:
    print(list_b[i])

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

result = 15 - (A+B+C+D+E)
print(result)

Solution (Python):
x = list(map(int,input().split()))
 
print(x.index(0)+1)

Solution (Python):
a,b,c,d,e = (int(x) for x in 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)

Solution (Python):
X = input().split()
         
for i,num in enumerate(X):
	if num == "0":
		print(int(i)+1)

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

print(l.index(0)+1)

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

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

Solution (Python):
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)

Solution (Python):


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

print(x.index(0)+1)

Solution (Python):
str1 = input()

A = str1.split(" ")

i = 1
for a in A:
    if a == "0":
        print(i)
    else:
        i = i + 1

Solution (Python):
x=list(map(int,input().split()))
print(x.index(0)+1)

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

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

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

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

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

Solution (Python):
a = input().split()
for i in range(5):
  if (a[i]=='0'):
    print(i+1)

Solution (Python):
a=list(input().split())
a=[int(s) for s in a]
i=1
for test in a:
    if(test==0):
        print(i)
    else:
        i=i+1

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

def Main(A, B, C, D, E):
    li = (A, B, C, D, E)
    for i in range(5):
        if li[i] == 0:
            return i+1

print(Main(A, B, C, D, E))

Solution (Python):
x_list = map(int, input().split())
for i, x in enumerate(x_list):
  if x == 0:
    print(i+1)

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

a = i.index(0)
print(a+1)

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

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

Solution (Python):
import sys
x=list(map(int, input().split()))

for i in range(len(x)):
    if(x[i]==0):
        print(i+1)
        sys.exit()

Solution (Python):


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

for i, num in enumerate(l):
  if num == 0:
    print(i + 1)

Solution (Python):
x = [int(x) for x in input().split()]
print(x.index(0)+1)

Solution (Python):
arr = list(map(int, input().split()))
for i in range(len(arr)):
  if arr[i] == 0:
    print(i+1)

Solution (Python):
X=list(map(int,input().split()))
for i in range(5):
  if X[i]==0:
    print(i+1)

Solution (Python):
x = list(map(int,input().split()))
for i in range(5):
    if x[i] == 0:
        print(i+1)

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

for i in a:
    if i == 0:
        ans = a.index(i)+1
        break

print(ans)

Solution (Python):
x=list(map(int,input().split()))
for i in range(0,5):
    if x[i]==0:
        print(i+1)
        break
    else:
        continue

Solution (Python):
l=list(map(int,input().split()))
for i in range(len(l)):
	if l[i]==0:
		print(i+1)

Solution (Python):
a=list(map(int,input().split()))
if not 1 in a:
    print(1)
elif not 2 in a:
    print(2)
elif not 3 in a:
    print(3)
elif not 4 in a:
    print(4)
else:
    print(5)

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

Solution (Python):
import sys
import  math
import fractions
from collections import defaultdict
stdin = sys.stdin
     
ns = lambda: stdin.readline().rstrip()
ni = lambda: int(stdin.readline().rstrip())
nm = lambda: map(int, stdin.readline().split())
nl = lambda: list(map(int, stdin.readline().split()))


n_l=nl()
inds=n_l.index(0)
print(inds+1)

Solution (Python):
x=input().split()
for c in range(5):
    if x[c]=="0":
        break
print(c+1)

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

print(int(L.index(0)+1))

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

for i, xi in enumerate(x_list):
  if xi == 0:
    out = i+1
    break
  else:
    pass

print(out)

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

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

Solution (Python):
A=list(map(int,input().split()))
i = A.index(0)
print(i+1)

Solution (Python):
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")

Solution (Python):
A,B,C,D,E = (int(x) for x in input().split())
renketsu = str(A)+str(B)+str(C)+str(D)+str(E)
print(renketsu.find("0")+1)

Solution (Python):
lst=list(map(int,input().split()))[:5]
for i in range(5):
  if lst[i]==0:
    print(i+1)
    break

Solution (Python):


import sys
input= lambda: sys.stdin.readline().rstrip()
def pin(type=int):return map(type,input().split())
def tupin(t=int):return tuple(pin(t))
def lispin(t=int):return list(pin(t))

def resolve():
    a=lispin()
    print(a.index(0)+1)

resolve()

Solution (Python):
a = input()

l = a.split()
for i in range(5):
    if l[i]=='0':
        print(i+1)

Solution (Python):
x1, x2, x3, x4, x5 = list(map(int, input().split()))
if x1 == 0:
    print(1)
elif x2 == 0:
    print(2)
elif x3 == 0:
    print(3)
elif x4 == 0:
    print(4)
elif x5 == 0:
    print(5)

Solution (Python):
X = list(map(int, input().split()))
print(X.index(0) + 1)

Solution (Python):
A = list(map(int,input().split()))
B = A.index(0)+1
print(B)

Solution (Python):
a, b, c, d, e = map(int, input().split())
list = [a, b, c, d, e]
print((list.index(0)) + 1)

Solution (Python):
print(input().split().index('0')+1)

Solution (Python):
n = list(map(int,input().split()))
print(n.index(0)+1)

Solution (Python):
x1,x2,x3,x4,x5,=map(int,input().split())
if 0 == x1:
    print("1")
elif 0 == x2:
    print("2")
elif 0 ==x3:
    print("3")
elif 0 == x4:
    print("4")
else:
    print("5")

Solution (Python):
xs = map(int, input().split())
for i, x in enumerate(xs):
    if i+1 != x:
        print(i+1)
        exit()

Solution (Python):
import sys
input = sys.stdin.readline
def main():
    inp = list(map(int, input().split()))
    ans = -1
    for i, x in enumerate(inp):
        if x == 0:
            ans = i + 1
    print(ans)
if __name__ == "__main__":
    main()

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

print(a_L.index(0)+1)

Solution (Python):
li = list(map(int,input().split()))
for i in range(5):
  if li[i]==0:
    print(i+1)

Solution (Python):

x = []*5
x = list(map(int,input().split()))



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

Solution (Python):
a,b,c,d,e=(int(x) for x in input().split())
if a==0:
    print('1')
elif b==0:
    print('2')
elif c==0:
    print('3')
elif d==0:
    print('4')
elif e==0:
    print('5')

Solution (Python):
A=input().split()
print(A.index('0')+1)

Solution (Python):
X = [int(i) for i in input().split()]

for i in range(5):
	if X[i] == 0:
		print(i+1)

Solution (Python):
def main():
    nums = map(int, input().split())
    for i, num in enumerate(nums, 1):
        if num == 0:
            print(i)
            break
            
if __name__ == '__main__':
    main()

Solution (Python):
a, b, c, d, e = map(int,input().split())

print("1" if a==0 else "2" if b==0 else "3" if c==0 else "4" if d==0 else "5")

Solution (Python):
import math
list1=list(map(int,input().split(" ")))
ln1=[1,2,3,4,5]
i=0
eee=0
for n in list1:
    if n-ln1[i]<0:
        eee=i
    i+=1

if eee<4 and eee>0:
    print(int((list1[eee-1]+list1[eee+1])/2))
elif eee==4:
    print(list1[eee-1]+list1[eee-1]-list1[eee-2])
elif eee==0:
    print(list1[eee+1]-list1[eee+2]+list1[eee+1])

Solution (Python):
x = list(map(int, input().split()))
ind = x.index(0)
print(ind + 1)

Solution (Python):
P = list(map(int,input().split()))
ans = 0
for i in range(5):
  if(P[i]==0):
    ans = i+1
print(ans)

Solution (Python):
arr = input().split()
print((arr.index('0'))+1)

Solution (Python):
def solve():
    xs = [int(x) for x in input().split()]
    for i, x in enumerate(xs):
        if x == 0:
            return i + 1


if __name__ == '__main__':
    
    
    print(solve())

Solution (Python):
x1, x2, x3, x4, x5 = map(int,input().split())
i = 10
if x1==0:
  i=1
elif x2==0:
  i=2
elif x3==0:
  i=3
elif x4==0:
  i=4
elif x5==0:
  i=5
else:
  i=i

print(i)

Solution (Python):
NumList = list(map(int,input().split()))
isAssein = 0
for i in range(len(NumList)):
    if(NumList[i] == 0):
        isAssein = (i + 1)

print(str(isAssein))

Solution (Python):
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)

Solution (Python):
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')

Solution (Python):
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)
elif e == 0:
    print(5)

Solution (Python):
A1, A2, A3, A4, A5= map(int, input().split())

if A1==0:
  print("1")
elif A2==0:
  print("2")
elif A3==0:
  print("3")
elif A4==0:
  print("4")
else:
  print("5")

Solution (Python):
x1,x2,x3,x4,x5 = map(int,input().split())

if x1 == 0:
    print("1")
if x2 == 0:
    print("2")
if x3 == 0:
    print("3")
if x4 == 0:
    print("4")
if x5 == 0:
    print("5")

Solution (Python):
A,B,C,D,E = input().split()

def my_index(l, x, default=False):
    if x in l:
        return l.index(x)+1
    else:
        return default

L=[A,B,C,D,E]
print(my_index(L, "0"))

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

idx = None
for i in range(len(l)):
  if l[i] == 0:
    idx = i+1
print(idx)