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

def main():
    import sys
    imput = sys.stdin.readline
    
    
    
    x = list(map(int, input().split()))

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

    
if __name__ == "__main__":
    main()

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):
import numpy as np
import math
import scipy as sp
import queue
import collections

MOD = 10 ** 9 + 7
INF = 10 ** 9

def main(kwargs):
    X = kwargs["X"]
    res = 0

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

    return res

if __name__ == "__main__":
    kwargs = {}

    cin = input().split()
    kwargs["X"] = [int(i) for i in cin]

    cout = main(kwargs)
    print(cout)

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

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

Solution (Python):
import sys

input = sys.stdin.readline


def S():
    return input().rstrip()


def I():
    return int(input())


def MI():
    return map(int, input().split())


x = list(MI())

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

Solution (Python):
def five(x):
    return x.index(0)+1

if __name__ == "__main__":
    x = list(map(int,input().split()))
    print(five(x))

Solution (Python):

a, b, c, d, e = (int(x) for x in input().split())

if a == 0 :
    ans = '1'
elif b == 0 :
    ans = '2'
elif c == 0 :
    ans = '3'
elif d == 0 :
    ans = '4'
else :
    ans = '5'

print(ans)

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

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













for i in range(len(X)):
    if X[i] == 0:
        break
    

print(i+1)

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

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

print(ans)

Solution (Python):
from sys import stdin
from copy import deepcopy
from functools import reduce
from fractions import gcd
import math
import itertools
from collections import Counter
from itertools import chain  
from heapq import heappush, heappop
import bisect


"""
N = int(input())
A, B = map(int,input().split())
A = list(map(int,input().split())) 
A = [int(input()) for _ in range(N)] 
lst = [list(map(int,input().split())) for i in range(M)] 
"""


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

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

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

print( x.index(0) + 1)

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

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

Solution (Python):
a = list(map(int, input().split()))
for i, num in enumerate(a):
    if num == 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
print(ans)

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

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

Solution (Python):
def resolve():
    '''
    code here
    '''

    in_list = [int(item) for item in input().split()]

    for i, item in enumerate(in_list):
        if item == 0:
            print(i+1)


if __name__ == "__main__":
    resolve()

Solution (Python):
num_list = list(map(int,input().split()))
 
for i in range(len(num_list)):
  if i+1 != num_list[i]:
    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):
def intlist(x):
    y = []
    for i in range(len(x)):
        y.append(int(x[i]))
    return y

A = intlist(input().split())
for i in range(5):
    if A[i] == 0:
        
        print(i+1)
        break

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

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

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

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

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

Solution (Python):
x_list = [int(_c) for _c in input().split(" ")]

idx = -1

for i in range(len(x_list)):
    if x_list[i] != i + 1:
        idx = i + 1

print(idx)

Solution (Python):

def main():
	l = map(int, input().split())
	for i, n in enumerate(l):
		if n == 0:
			print(i+1)
	return

if __name__ == "__main__":
	main()

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

if a == 0:
    print('1')
    exit()
elif b == 0:
    print('2')
    exit()
elif c == 0:
    print('3')
    exit()
elif d == 0:
    print('4')
    exit()
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):
X = list(map(int, input().split()))
print(15 - sum(X))

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

for item in l:
  if(item == 0):
    print(l.index(item) + 1)

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

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

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


print(num_list.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] != (i+1):
        print(i+1)

Solution (Python):
import sys
from collections import deque
from itertools import *

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

x = LS()

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

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

Solution (Python):
from collections import defaultdict
it = lambda: list(map(int, input().strip().split()))
INF = float('inf')

def solve():
    x1, x2, x3, x4, x5 = it()
    if x1 == 0:
        return 1
    if x2 == 0:
        return 2
    if x3 == 0:
        return 3
    if x4 == 0:
        return 4
    return 5

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

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):
from sys import stdin
input = stdin.readline

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

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

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

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

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

print(lst.index(0)+1)

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

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

Solution (Python):
def main():

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


if __name__ == "__main__":
    main()

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

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

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

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

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

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

Solution (Python):

from collections import deque
from operator import itemgetter
from bisect import bisect_left, bisect
import itertools
import sys
import math
import numpy as np
import time
sys.setrecursionlimit(10**6)
input = sys.stdin.readline


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


if __name__ == '__main__':
    main()

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

Solution (Python):
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10 ** 7)
import bisect
import numpy as np
import math
from collections import deque
from collections import defaultdict
from math import gcd


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

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

print(a.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):
A=list(map(int,input().split()))
ans=0
for i in range(5):
    if A[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):
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):
arr = [int(x) for x in input().split()]
for i, x in enumerate(arr):
    if x == 0:
        print(i+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):

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

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

print(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):
data = input().split()
print(data.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(5):
    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:
        break
print(i+1)

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

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

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

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

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

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

Solution (Python):









import os
import sys




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


if __name__ == "__main__":
    main()

Solution (Python):
def intMap(): return map(int,input().split())
def intList(): return list(map(int, input().split())) 


a = intList()

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

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

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

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

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

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

Solution (Python):
import numpy as np

x=np.array(input().split(" "),dtype=np.int32)

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

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

Solution (Python):


import sys
import math
import time

import collections
from collections import deque
from collections import Counter
import queue
import copy
import bisect
import heapq
import itertools









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

print(x.index(0)+1)

Solution (Python):
"""    Arnab Chanda    """

from collections import defaultdict, deque
from itertools import permutations
from sys import stdin,stdout
from bisect import bisect_left, bisect_right
from copy import deepcopy
import heapq

int_input=lambda : int(stdin.readline())
string_input=lambda : stdin.readline().split()
multi_int_input =lambda : map(int, stdin.readline().split())
multi_input = lambda : stdin.readline().split()
list_input=lambda : list(map(int,stdin.readline().split()))
string_list_input=lambda: list(string_input())
MOD = pow(10,9)+7

a,b,c,d,e = multi_int_input()

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()))
for i in range(5):
  if X[i]!=i+1:
    print(i+1);exit()

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

for i in range(1,6):
  if(i != x[i-1]):
    break
print(i)

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

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

print(x.index(0) + 1)

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

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

ans = 0

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

print(ans)

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

for i, xi in enumerate(x):
    if xi == 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):

import sys
import math



tmp = input().split()
a,b,c,d,e = list(map(lambda a: int(a), tmp))
if(a==0):
	print("1")
	sys.exit()
if(b==0):
	print("2")
	sys.exit()
if(c==0):
	print("3")
	sys.exit()
if(d==0):
	print("4")
	sys.exit()
if(e==0):
	print("5")
	sys.exit()

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

for i in range(5):
    if a[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(map(int,input().split()))

ans=X.index(0)+1

print(ans)

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

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

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

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

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

for x in X:
        i +=1
        if x == 0:
                ans = i

print(ans)

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

ans = 100
for (i, x) in enumerate(x):
    if x == 0:
        ans = i + 1
        break

print(ans)

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

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

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

Solution (Python):




import sys
from io import StringIO
import unittest

def yn(b):
    print("Yes" if b==1 else "No")
    return

def resolve():
    readline=sys.stdin.readline

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

    return

if 'doTest' not in globals():
    resolve()
    sys.exit()

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

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

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

Solution (Python):



import sys


def input():
    return sys.stdin.readline()


def resolve():
    a_list = list(map(int, input().split()))

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



if __name__ == "__main__":
    resolve()

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

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

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

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

Solution (Python):
l=list(map(int,input().split()))
for ll in l:
  if ll==0:
    print(l.index(ll)+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 = map(int, input().split())
for num, one in enumerate(x, 1):
    if not one:
        print(num)
        break

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

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

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()))
ans = 15 - sum(A) 
print(ans)

Solution (Python):
def main():
    from operator import itemgetter
    import sys
    sys.setrecursionlimit(10**9)
    input = sys.stdin.readline

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

main()

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

Solution (Python):

def resolve():
    A = list(map(int, input().split()))
    idx = A.index(0)
    print(idx+1)

if __name__ == "__main__":
    resolve()

Solution (Python):

import sys


def solve(x: "List[int]"):
    for i in range(len(x)):
        if x[i] == 0:
            print(i+1)
    return



def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    x = [int(next(tokens)) for _ in range(5)]  
    solve(x)

if __name__ == '__main__':
    main()

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

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

print(LA.index(0)+1)

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

index = x.index(0)

print(index+1)

Solution (Python):

import sys


def solve(x: "List[int]"):
    a = 1
    for i in x:
        if i == 0:
            print(a)
        a += 1
    return



def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    x = [int(next(tokens)) for _ in range(5)]  
    solve(x)

if __name__ == '__main__':
    main()

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(' ')))

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



if __name__ == "__main__":
    main()

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

    print(X.index(0)+1)

if __name__ == '__main__':
    main()

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

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

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

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

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

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

Solution (Python):
import sys
from io import StringIO
import unittest
import os


sys.setrecursionlimit(999999999)



def resolve():
    
    
    

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

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

    


class TestClass(unittest.TestCase):
    def assertIO(self, assert_input, output):
        stdout, sat_in = sys.stdout, sys.stdin
        sys.stdout, sys.stdin = StringIO(), StringIO(assert_input)
        resolve()
        sys.stdout.seek(0)
        out = sys.stdout.read()[:-1]
        sys.stdout, sys.stdin = stdout, sat_in
        self.assertEqual(out, output)

    def test_input_1(self):
        test_input = """0 2 3 4 5"""
        output = """1"""
        self.assertIO(test_input, output)

    def test_input_2(self):
        test_input = """1 2 0 4 5"""
        output = """3"""
        self.assertIO(test_input, output)

    
    def tes_t_1original_1(self):
        test_input = """データ"""
        output = """データ"""
        self.assertIO(test_input, output)



if __name__ == "__main__":
    if os.environ.get("USERNAME") is None:
        
        resolve()

    else:
        
        unittest.main()

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

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

for x in ar:
	if x=='0':
		print(ar.index(x)+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):
X = map(int,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):


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


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

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

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

Solution (Python):
x = [int(n) for n in 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)
        break

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

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

Solution (Python):

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



for i in range(1,6):
    if S[i-1]!=i:
        print(i)

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

Solution (Python):

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

print(A_list.index(0) + 1)

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

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

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

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

resolve()

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

Solution (Python):
def resolve():
    import sys
    input = sys.stdin.readline
    
    
    
    
    
    
    
    N = list(map(int, input().split()))
    
    

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

resolve()

Solution (Python):
def main():
    import sys
    L = list(map(int, sys.stdin.readline().split()))
    print(L.index(0)+1)







if __name__=='__main__':
    main()

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

Solution (Python):
def main():
    X = [int(e) for e in input().split()]

    print(X.index(0) + 1)


if __name__ == '__main__':
    main()

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

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

Solution (Python):

import sys
import numpy as np


def solve(x: "List[int]"):
    for i in range(len(x)):
        if x[i] == 0:
            print(i+1)
    return



def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    x = [int(next(tokens)) for _ in range(5)]  
    solve(x)

if __name__ == '__main__':
    main()

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(x) for x in input().split()]

t = 1
for n in x:
    if n == 0:
        print(t)
    t += 1

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

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