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):
x = list(map(int, input().split()))
y = list(range(1,6))
for i in y:
    if i not in x:
        print(i)
        break

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

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

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

Solution (Python):
x = list(map(int,input().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)
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(len(x)):
	if x[i] == 0:
		print(i + 1)

Solution (Python):
nums = input().split()


index = 0
for num in nums:
    index += 1
    if num == "0":
        print(index)
        break

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

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

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

Solution (Python):
N_List = list(map(int,input().split()))
print(N_List.index(0)+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)
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(1,6):
  if x[i-1]!=i:
    print(i)

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

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

Solution (Python):
x = list(map(int,input().split()))
if 0 in x:
  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)
elif e == 0:
  print(5)

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

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

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

Solution (Python):
l = list(map(int, input().split()))
for i in range(5):
  if not i+1 == l[i]:
    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):
user_input = list(map(int, input().split()))


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

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

if __name__ == "__main__":
    solve()

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

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

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

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

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

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

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

print(x.index(0) + 1)

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

Solution (Python):
import numpy as np

inp = np.array([int(a) for a in input().split()])
print(15 - np.sum(inp))

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 range(5):
  if a[i]==0:
    print(i+1)

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

Solution (Python):
print(list(map(int, input().split())).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()))
print(a.index(0)+1)

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

Solution (Python):
x_lst = list(map(int, input().split()))
print(x_lst.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=list(map(int,input().split()))
for i in range(1,6):
  if X[i-1]==0:
    print(i)
    break

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

Solution (Python):
X = list(map(int, input().split()))
for i, x in enumerate(X):
    if x == 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()))
print(X.index(0)+1)

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

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

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

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

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

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

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

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

Solution (Python):
X = list(map(int, input().split()))
sum = X[0] + X[1] + X[2] + X[3] + X[4]
print(15 - sum)

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

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

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

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

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


if __name__ == "__main__":
    main()

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

Solution (Python):
get = list(map(int, input().split()))
ans = 0

for i in range(5):
    if get[i] == 0:
        ans = i

print(ans + 1)

Solution (Python):
x = input().split()
print(x.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):
x = tuple(map(int, input().split()))
for i in range(5):
    if x[i] == 0:
        print(i+1)

Solution (Python):
if __name__ == '__main__':
    x_l = (input().split())
    print(x_l.index('0')+1)

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

Solution (Python):
xs = list(map(int,input().split()))
print(xs.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):
lst = list(map(int, input().split()))
print(str(lst.index(0) + 1))

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

Solution (Python):
a = input().split()
b = [int(s) for s in a]
print(15 - sum(b))

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

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

Solution (Python):
x1,x2,x3,x4,x5 = map(int,input().split())
P=[x1,x2,x3,x4,x5]
for i in range(5):
    if P[i]==0:
        print(str(i+1))
    else:
        continue

Solution (Python):
numbers = input().split()
print(numbers.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):
numbers = input().split()
print(numbers.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):
str = input()
data = str.strip().split()
for i in range(5):
  if data[i] == "0":
     print(i+1)

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

print(X.index(0)+1)

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

Solution (Python):

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

Solution (Python):
str = input()


data = str.strip().split()

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

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(5):
  if x[i] == 0:
    print(i+1)
    break

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

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

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

Solution (Python):


import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(10 ** 7)

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 range(len(a)):
    if a[i]==0:
        print(i+1)

Solution (Python):


print([i + 1 for i, n in enumerate(input().split()) if n == '0'][0])

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

for n in range(len(t)):
    if t[n] == 0:
        print(n+1)

Solution (Python):
def I(): return int(input())
def LI(): return list(map(int,input().split()))
def MI(): return map(int,input().split())
def LLI(n): return [list(map(int, input().split())) for _ in range(n)]









li = LI()
c = 1
i = 0
while c:
    if li[i] == 0:
        print(i+1)
        c = 0
    i += 1

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

Solution (Python):
x1, x2, x3, x4, x5 = map(int, input().split())
numbers = [x1,x2,x3,x4,x5]
for number in numbers:
    if number == 0:
        a = numbers.index(0)
        print(a + 1)

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

print(x.index(0)+1)

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

Solution (Python):

X = list(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(len(x)):
    if x[i] == 0:
        print(i + 1)

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

Solution (Python):
n=list(map(int,input().split()))
p=sum(n)
f=15
ans=(f-p)
print(ans)

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



def hantei(list):
    for a in range(len(list)):
        if list[a] == 0:
            return a+1

print(hantei(A))

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

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

for i, n in enumerate(x):
    if n == 0:
        print(i+1)

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

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

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

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

print(N.index(0)+1)

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

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

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

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

Solution (Python):
print(input().strip().split().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):


x_list = list(map(int, input().split()))
ans = x_list.index(0) + 1

print(ans)

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

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

Solution (Python):
x = [int(i) for i in input().split()]
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):
x=list(map(int,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):
a = list(map(int, input().split()))
for i in range(5):
    if a[i] != i + 1:
        print(i + 1)
        break

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(5):
  if x[i] != i+1:
    print(i+1)

Solution (Python):
X = list(map(int, input().split()))
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):
import sys
input = sys.stdin.buffer.readline


X = [int(i) for i in input().strip().split()]
print(X.index(0) + 1)

Solution (Python):
def a():
    l = map(int, input().split())
    res = [i + 1 for i, v in enumerate(l) if v == 0]
    if len(res) > 1:
        r = res[-1]
    else:
        r = res[0]
    print(r)


if __name__ == "__main__":
    a()

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

Solution (Python):
x=list(map(str,input().split()))
X="".join(x)
print(X.find('0')+1)

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

print(x.index(0)+1)

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

print(x.index(0)+1)

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

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

Solution (Python):
N = input("").split(" ")
N = [int(s) for s in N]

print(N.index(0) + 1)

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

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

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

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

i = 0

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

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

for n in range(5):
    if x[n] == 0:
        print(n+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')
elif e == 0:
  print('5')

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

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

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

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

Solution (Python):
lis = [int(e) for e in input().split()]

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

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

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

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

Solution (Python):
def main(istr, ostr):
    ls = list(map(int, istr.readline().strip().split()))
    for i in range(5):
        if ls[i] == 0:
            print(i + 1, file=ostr)


if __name__ == "__main__":
    import sys

    main(sys.stdin, sys.stdout)

Solution (Python):


X = list(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):
print(15 - sum(list(map(int, input().split()))))

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()))
print((x.index(0) + 1))

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

Solution (Python):
x= list(map(int, input().split()))
sum = 0
for i in x:
    sum = sum + i
y = 15 - int(sum)
print(int(y))

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

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

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

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

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

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

Solution (Python):
v_list = list(map(int,input().split()))
for i in range(len(v_list)):
  if v_list[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):
import sys
def Ii():return int(sys.stdin.readline())
def Mi():return map(int,sys.stdin.readline().split())
def Li():return list(map(int,sys.stdin.readline().split()))

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

Solution (Python):
x = list(input().split())
for i in range(5):

    if x[i] == "0":
        print(i + 1)
        exit()

Solution (Python):
import sys

input = sys.stdin.readline

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

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

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

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

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


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

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

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

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

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

B=A.index(0)
print(B+1)

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

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

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

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

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

Solution (Python):
numbers = input().split(" ")
num = numbers.index("0")
print(num + 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 = [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)
elif b == 0:
    print(2)
elif c == 0:
    print(3)
elif d == 0:
    print(4)
else:
    print(5)

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

Solution (Python):
def solve(arr):
    for i in range(len(arr)):
        if arr[i]==0:
            return i+1

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

print(solve(arr))

Solution (Python):
x=list(map(int, 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):
x = list(map(int, input().split()))
print(x.index(0)+1)

Solution (Python):
x1,x2,x3,x4,x5=(int(i) for i in 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):
five_numbers = list(map(int, input().split()))

for order, number in enumerate(five_numbers):
    if number == 0:
        if order == 0:
            print(five_numbers[order+1]-1)
            break
        print(five_numbers[order-1]+1)

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

print(15-list[0]-list[1]-list[2]-list[3]-list[4])

Solution (Python):
x = input().split()

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

Solution (Python):
x= list(map(int,input().split()))
print(x.index(0) + 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(5):
  if x[i] == 0:
    print(i+1)
    exit()

Solution (Python):
n = list(input().split())

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

Solution (Python):
n = list(input().split())

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

Solution (Python):
X = list(map(int, input().split()))
i = 0
while i < len(X):
    if X[i] == 0:
        print(i+1)
    i +=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 = list(map(int,input().split()))
index = x.index(0) + 1
print(index)

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
lx = [int(w) for w in input().split()]

for i, x in enumerate(lx):
    if x == 0:
        print(i+1)
        exit()

Solution (Python):
import sys
import numpy as np

def Ss():
  return sys.stdin.readline().rstrip().split(' ')

def Is():
  ss = Ss()
  return map(int, ss) if len(ss) > 1 else int(ss[0])

a, b, c, d, e = Is()
print(15 - a - b - c - d - e)

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 = input()
b = a.split(" ")
for i in range(len(b)):
    if b[i] == "0":
        print(i + 1)
        break

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

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

Solution (Python):
x=list(map(int,input().split()))
print(sum([1,2,3,4,5])-sum(x))

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

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

Solution (Python):

def inputlist(): return [int(j) for j in input().split()]

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

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

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

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

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

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

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

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

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

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)
        break

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

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

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

Solution (Python):



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

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

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):
x = list(map(int, input().split()))
for i in range(len(x)):
    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)
        break

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

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

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

if __name__ == "__main__":
    resolve()

Solution (Python):
num = list(map(int,input().split()))
nyan = 1
i = 0
while num[i]>0:
    nyan += 1
    i += 1
    
print(nyan)

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):
x_list = list(map(int, input().split()))
for i in range(len(x_list)):
    if x_list[i]==0:
        print(i+1)
        break

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):
list_sunuke = input().split()
list_m = []

for i in range(5):
    list_m.append(i+1)

for i in range(5):
    if int(list_sunuke[i]) != list_m[i]:
        print(list_m[i])

Solution (Python):
list_sunuke = input().split()
list_m = []

for i in range(5):
    list_m.append(i+1)

for i in range(5):
    if int(list_sunuke[i]) != list_m[i]:
        print(list_m[i])

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

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

Solution (Python):







































global FLAG_LOG
FLAG_LOG = False


def log(value):
    
    FLAG_LOG = False
    if FLAG_LOG:
        print(str(value))


def calculation(lines):
    
    
    
    values = list(map(int, lines[0].split()))
    
    
    
    
    
    
    

    for n in range(5):
        if values[n] == 0:
            result = n+1

    return [result]



def get_input_lines(lines_count):
    lines = list()
    for _ in range(lines_count):
        lines.append(input())
    return lines



def get_testdata(pattern):
    if pattern == 1:
        lines_input = ['0 2 3 4 5']
        lines_export = [1]
    if pattern == 2:
        lines_input = ['1 2 0 4 5']
        lines_export = [3]
    return lines_input, lines_export



def get_mode():
    import sys
    args = sys.argv
    global FLAG_LOG
    if len(args) == 1:
        mode = 0
        FLAG_LOG = False
    else:
        mode = int(args[1])
        FLAG_LOG = True
    return mode



def main():
    import time
    started = time.time()
    mode = get_mode()
    if mode == 0:
        lines_input = get_input_lines(1)
    else:
        lines_input, lines_export = get_testdata(mode)

    lines_result = calculation(lines_input)

    for line_result in lines_result:
        print(line_result)

    
    
    
    
    
    
    
    
    
    
    



if __name__ == '__main__':
    main()

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

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

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

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

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

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

Solution (Python):
A = list(map(int, input().split()))
print(A.index(0)+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(5):
    if X[i] != i+1 :
        print(i+1)

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

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

Solution (Python):
def inp():
    return int(input())
def inpL():
    return list(map(int,input().split()))

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

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

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

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

Solution (Python):


def main():

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

    for i in range(n):
        if i + 1 != x[i]:
            ans = i + 1
            break

    print(ans)


if __name__ == "__main__":
    main()

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

print(array.index(0)+1)

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

Solution (Python):


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


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