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

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

Solution (Python):


from pprint import pprint
from collections import deque, defaultdict
import itertools
import math
import sys

sys.setrecursionlimit(10 ** 6)
input = sys.stdin.buffer.readline
INF = float('inf')


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

for idx, num in enumerate(numbers):
    if num == 0:
        print(idx + 1)

Solution (Python):
a_list=list(map(int,input().split()))
for i in range(5):
    if a_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):
x = list(map(int,input().split()))
x.sort()
for i in range(1,5+1):
    if i not in x:
        print(i)

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

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

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

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

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

Solution (Python):






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

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

print(ans)

Solution (Python):
sunuke = list(map(int,input().split()))
for i,number in enumerate(sunuke):
    if number == 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):
x=list(map(int, input().split()))

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

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

print(X.index(0) + 1)

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

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

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

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

if   a[0]==0:
  print(1)
elif a[1]==0:
  print(2)
elif a[2]==0:
  print(3)
elif a[3]==0:
  print(4)
elif a[4]==0:
  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):
array = [int(x) for x in input().split()]
for i in range(5):
  if array[i] == 0:
    print(i+1)
    break

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

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

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

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

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()))
ans = 0
for i in range(len(x)):
    if x[i] == 0:
        ans = i+1
        break

print(ans)

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

for i, j in enumerate(a):
    if j == 0:
        print(i+1)

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

Solution (Python):
X1,X2,X3,X4,X5 = map(int, input().split())
lis = [X1,X2,X3,X4,X5]

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

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

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

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

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

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

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

print(ans)

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

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

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

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

print (x.index(0)+1)

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

originals = [1, 2, 3, 4, 5]

for i, x in enumerate(xs):
    if x != originals[i]:
        print(originals[i])
        break

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

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

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

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

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

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

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

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

import glob
import os

bn = os.path.basename(__file__).split('.')[0]
dn = os.path.dirname(__file__).split('/')


REL_PATH = dn[len(dn)-2] + '\\' + dn[len(dn)-1] + '\\' + bn


TOP_PATH = 'C:\\AtCoder'

class Common:

    problem = []
    index = 0

    def __init__(self, rel_path):
        self.rel_path = rel_path

    def initialize(self, path):
        file = open(path)
        self.problem = file.readlines()
        self.index = 0
        return

    def input_data(self):
        try:
            IS_TEST
            self.index += 1
            return self.problem[self.index-1]

        except NameError:
            return input()

    def resolve(self):
        pass

    def exec_resolve(self):
        try:
            IS_TEST
            for path in glob.glob(TOP_PATH + '\\' + self.rel_path + '/*.txt'):
                print("Test: " + path)
                self.initialize(path)
                self.resolve()
                print("\n\n")
        except NameError:
            self.resolve()


class Solver(Common):

    def resolve(self):

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


solver = Solver(REL_PATH)
solver.exec_resolve()

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

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

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

for i, a in enumerate(X):
    if a == '0':
        print(i+1)

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

print(main())

Solution (Python):
import sys
input = lambda: sys.stdin.readline().rstrip()

def main():
    S = list(input().split())
    for i, s in enumerate(S):
        if s == '0':
            print(i + 1)
            exit()
if __name__ == '__main__':
    main()

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

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

import sys
import collections
input = sys.stdin.readline


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

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

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

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)

Solution (Python):
import sys


def main():
    input = sys.stdin.buffer.readline
    xs = map(int, input().split())
    for i, x in enumerate(xs):
        if x == 0:
            print(i + 1)


if __name__ == '__main__':
    main()

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

Solution (Python):
X = [int(x) for x in input().split()]
for i, x in enumerate(X):
    if x == 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)
    break

Solution (Python):

def main():
    x = list(map(int, input().split()))

    print(x.index(0)+1)


if __name__ == '__main__':
    main()

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

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

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

print(result)

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

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

print(x.index(0)+1)

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

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

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

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

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

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

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

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

Solution (Python):
xs = list(map(int, input().split()))
for i,x in enumerate(xs):
    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)

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

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

Solution (Python):
a = list(map(int, input().split()))
ans = 0
for i, v in enumerate(a):
    if v == 0:
        ans = i
        break

print(ans+1)

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

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

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

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

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

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

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

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

for i, e in enumerate(x, start=1):
    if e == 0:
        print(i)
        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):
s = input().split()

ans = s.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):
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()))
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):
l = list(map(int,input().split()))

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

Solution (Python):
a = input().split(" ")
lista = [int(n) for n in a]
for i in range(5):
  if lista[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):
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)

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

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

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

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

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

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

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

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

ans = 0

for i in x:
  ans += 1
  if i ==0:
    print(ans)

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

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

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

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

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

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

i = xs.index(0)

print(i + 1)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

print(cnt)

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

Solution (Python):
x_list = [int(x) for x in input().split()]
print(x_list.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):
def i():
	return int(input())
def i2():
	return map(int,input().split())
def s():
	return str(input())
def l():
	return list(input())
def intl():
	return list(int(k) for k in input().split())

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

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

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

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

Solution (Python):


print(input().split(" ").index("0") + 1)

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

print(X.index(0) + 1)

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

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

Solution (Python):
import sys
import math

a1,a2,a3,a4,a5 = list(map(int,input().split()))

if a1 == 0:
    print(1)
elif a2 == 0:
    print(2)
elif a3 == 0:
    print(3)
elif a4 == 0:
    print(4)
elif a5 == 0:
    print(5)

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

print(A.index(0)+1)

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

Solution (Python):


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



print(x.index(0)+1)

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

print(A.index(0)+1)

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

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

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

Solution (Python):
a = list(map(int, input().split()))
for i in range(5):
    if a[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):
A = list(map(int,input().split()))
for i in range(5):
    if(A[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)
else:
    print(5)

Solution (Python):
for i,x in enumerate(input().split()):
    if x == '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, xi in enumerate(x):
    if xi == 0:
        print(i+1)
        break

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

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

Solution (Python):


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

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

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

if 1 not in x:
    print('1')
elif 2 not in x:
    print('2')
elif 3 not in x:
    print('3')
elif 4 not in x:
    print('4')
elif 5 not in x:
    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):
A=list(map(int, input().split()))

for i in A:
    if A[i]==0:
        print(i+1)
        exit(0)

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

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

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

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

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

print(l.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())
if(x1==0):
  print(1)
  exit()
if(x2==0):
  print(2)
  exit()
if(x3==0):
  print(3)
  exit()
if(x4==0):
  print(4)
  exit()
if(x5==0):
  print(5)

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

Solution (Python):


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

for n, i in enumerate(x):
    if i == 0:
        print(n + 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):
import sys

def II(): return int(input())
def MI(): return map(int,input().split())
def LI(): return list(map(int,input().split()))
def TI(): return tuple(map(int,input().split()))
def RN(N): return [input().strip() for i in range(N)]


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

if __name__ == "__main__":
	main()

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

for i in range(5):
	if s[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()))

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

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

print(A.index(0)+1)

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

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

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

Solution (Python):
x = [int(i) for i in input().split(" ")]
i = x.index(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()))
print(a.index(0)+1)

Solution (Python):


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


result = x.index(0) + 1


print(result)

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

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

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

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

for i, x in enumerate(x_list):
    if x == 0:
        print(i+1)
    else:
        continue

Solution (Python):
x = list(map(int,input().split()))
if sum(x) == 14:
  print(1)
elif sum(x) == 13:
  print(2)
elif sum(x) == 12:
  print(3)
elif sum(x) == 11:
  print(4)
else:
  print(5)

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(str, input().split()))
print(x.index('0')+1)

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

print (arr.index(0)+1)

Solution (Python):
def main():
    A_list = [A for A in input().split()]
    A_list = list(map(int, A_list))
    if A_list[0] == 0 :
        print("1")
    elif A_list[1] == 0 :
        print("2")
    elif A_list[2] == 0 :
        print("3")
    elif A_list[3] == 0 :
        print("4")
    else :
        print("5")



if __name__ == '__main__':
    main()

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

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

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

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

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

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

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)
        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')
else:
    print('5')

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

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

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

Solution (Python):
import sys
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
read = sys.stdin.buffer.read
sys.setrecursionlimit(10 ** 7)
INF = float('inf')

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

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

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

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

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

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

Solution (Python):
def main():
  arr = list(map(int, input().split(" ")))
  for i, a in enumerate(arr):
    if a == 0:
      print(i+1)
      break
      
if __name__ == "__main__":
  main()

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