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


import os
import sys
from io import BytesIO, IOBase

"""
    for _ in range(int(input())):
    n,m=map(int,input().split())
    n=int(input())
    a = [int(x) for x in input().split()]
"""

def main():
    a = [int(x) for x in input().split()]
    for i in range(len(a)):
        if a[i]:
            continue
        print(i+1)
        exit(0)



BUFSIZE = 8192


class FastIO(IOBase):
    newlines = 0

    def __init__(self, file):
        self._fd = file.fileno()
        self.buffer = BytesIO()
        self.writable = "x" in file.mode or "r" not in file.mode
        self.write = self.buffer.write if self.writable else None

    def read(self):
        while True:
            b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
            if not b:
                break
            ptr = self.buffer.tell()
            self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr)
        self.newlines = 0
        return self.buffer.read()

    def readline(self):
        while self.newlines == 0:
            b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
            self.newlines = b.count(b"\n") + (not b)
            ptr = self.buffer.tell()
            self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr)
        self.newlines -= 1
        return self.buffer.readline()

    def flush(self):
        if self.writable:
            os.write(self._fd, self.buffer.getvalue())
            self.buffer.truncate(0), self.buffer.seek(0)


class IOWrapper(IOBase):
    def __init__(self, file):
        self.buffer = FastIO(file)
        self.flush = self.buffer.flush
        self.writable = self.buffer.writable
        self.write = lambda s: self.buffer.write(s.encode("ascii"))
        self.read = lambda: self.buffer.read().decode("ascii")
        self.readline = lambda: self.buffer.readline().decode("ascii")


sys.stdin, sys.stdout = IOWrapper(sys.stdin), IOWrapper(sys.stdout)
input = lambda: sys.stdin.readline().rstrip("\r\n")



if __name__ == "__main__":
    main()

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

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

_sum = sum(data)

print( 15-_sum )

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

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

Solution (Python):
inp = list()
inp = input().split()
idx = 1
for i in inp:
    if int(i) == 0:
        print(idx)
    idx += 1

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

Solution (Python):
X = input().replace(" ", "")
ans = X.index("0")
print(ans + 1)

Solution (Python):
temp = input().split(" ")

temp = [int(i) for i in temp]

for index, value in enumerate(temp):
    if value == 0:
        print(index + 1)

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

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

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

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

print(A.index(0)+1)

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

Solution (Python):
X = list(input().split())
count = 0

for i in range(len(X)):
    if(X[i] == '0'):
        count += 1
        break
    else:
        count += 1

print(count)

Solution (Python):
x = list(map(int, input().split()))
x = [0] + x

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

Solution (Python):

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

print(xs.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())) 

sum = sum(a)

print(15-sum)

Solution (Python):

x1, x2, x3, x4, x5 = map(int, input().split())
x_list = [x1, x2, x3, x4, x5]
ans = [i for i, j in enumerate(x_list) if j == 0]

print(ans[0]+1)

Solution (Python):


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

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

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

for n, i in enumerate(x_list):
    if n + 1 != i:
        print(n + 1)
        exit()

Solution (Python):
lst = [int(x) for x in input().split()]
for x in range(len(lst)):
    if lst[x] == 0:
        if x - 1 < 0:
            print(lst[x + 1] - 1)
        else:
            print(lst[x - 1] + 1)
        break

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

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

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

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

print(15-sum(x_list))

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

Solution (Python):

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

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

Solution (Python):

if __name__ == "__main__":
    x = input().split()
    ret = x.index('0') + 1
    print(ret)

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

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

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

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

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

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

print(ans)

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

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

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

Solution (Python):


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

Solution (Python):
x1, x2, x3, x4, x5 = map(int, input().split())
a = [x1, x2, x3, x4, x5]
i = a.index(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 = [int(i) for i in input().split()]
for i in range(len(X)):
    if X[i]==0:
        print(i+1)

Solution (Python):




def main():

    
    first_input = list(map(lambda x:int(x), input().split(" ")))
    

    
    
    

    
    
    

    print(first_input.index(0)+1)

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

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

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

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

Solution (Python):

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

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

for i in range(len(num_list)):
    if num_list[i] != i+1:
        print(i+1)

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

Solution (Python):
import math
def ip():return int(input())
def imp():return map(int,input().split())
def impstr():return map(str,input().split())
def limp():return list(map(int,input().split()))
def limpstr():return list(map(str,input().split()))

l=limp()
for i in range(1,6):
    if l[i-1]==i:
        continue
    else:
        print(i)
        exit()

Solution (Python):

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

Solution (Python):
def test(total):
  if total == 14:
    print('1')
  elif total == 13:
    print('2')
  elif total == 12:
    print('3')
  elif total == 11:
    print('4')
  else:
    print('5')

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

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

sys.setrecursionlimit(10 ** 7)
rl = sys.stdin.readline


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


if __name__ == '__main__':
    solve()

Solution (Python):
import sys

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

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

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

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

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

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

Solution (Python):
import sys

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

nums = map(int, read().split())
x = 15 - sum(nums)
print(x)

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

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

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

print(x.index(0)+1)

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

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

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

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

Solution (Python):
x,y,z,w,a=map(int,input().split())
if x==0:
    print(1)
if y==0:
    print(2)
if z==0:
    print(3)
if w==0:
    print(4)
if a==0:
    print(5)

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

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

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

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

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

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

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

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

print(X.index(0)+1)

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

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

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

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

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

Solution (Python):










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

for index,i in enumerate(arg):

  if i == 0:
    print(1+index)

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

x = 1
for i in a:
  if i == 0:
    break
  x += 1

print(x)

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

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

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

Solution (Python):
x=input()
xs=x.split()
xa=[1,2,3,4,5]

zero=xs.index('0')
print(xa[zero])

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

Solution (Python):
import numpy as np

def main():
    xs = [int(x) for x in input().split()]
    xs = np.array(xs)
    x = np.where(xs == 0)
    print(int(x[0] + 1))
    
    

main()

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

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

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

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

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

Solution (Python):
a,b,c,d,e=map(int,input().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(input().split())

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

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

s = x.index('0')
print(s+1)

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

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

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

i = x.index(0)

print(i+1)

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

print(s.index(0)+1)

Solution (Python):
S = list(input().split())
ans = 1
for i in range(len(S)):
    if S[i] != "0":
        ans += 1
    else:
        break
print(ans)

Solution (Python):

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

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


print(ans)

Solution (Python):
import sys
readline = sys.stdin.buffer.readline
def even(n): return 1 if n%2==0 else 0

lst1 = list(map(int,readline().split()))

for i in range(5):
    if lst1[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):
a = [int(i) for i in input().split()]
for i in range(0,len(a)):
  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):
import sys
from math import factorial
from collections import Counter
from fractions import Fraction
import heapq, bisect, fractions
import math
import itertools
sys.setrecursionlimit(10 ** 5 + 10)
INF = 10**15 +5
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
MOD = 10**9 + 7

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

Solution (Python):
li = list(map(int,input().split()))
tmp_list=[1,2,3,4,5]

for i in range(0,5):
    if li[int(i)] != tmp_list[int(i)]:
        Ans=tmp_list[int(i)]

print(Ans)

Solution (Python):
import sys
import numpy as np


MODE = 1


DIMENSION = 1


INT_TYPE = 1

if not (MODE):
    with open("input.txt", "r") as f:
        s = f.read()
else:
    s = sys.stdin.read()

if DIMENSION == 0:
    if INT_TYPE == 1:
        s = int(s)
elif DIMENSION == 1:
    if INT_TYPE == 0:
        s = s.split()
    elif INT_TYPE == 1:
        s = [int(x) for x in s.split()]
elif DIMENSION == 2:
    if INT_TYPE == 0:
        s = [x.split() for x in s.splitlines()]
    elif INT_TYPE == 1:
        s = [[int(y) for y in x.split()] for x in s.splitlines()]

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

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

for index,i in enumerate(s):
  if i == 0:
    print(index+ 1)
    exit()

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

Solution (Python):
def read_input(trans=int):
    return list(map(trans, input().split()))


original = set([1, 2, 3, 4, 5])
set_x = set(read_input())

print(list(original-set_x)[0])

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

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

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

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

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

Solution (Python):
def main ():
	A = []
	A = list(map(int,input().split()))

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

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

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

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

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

ans = 0

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

Solution (Python):

import sys


def solve(x: "List[int]"):
    print(x.index(0)+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):
x = list(map(int, input().split()))
ans=15-sum(x)
print(ans)

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

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

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

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

Solution (Python):
li = [int(i) for i in input().split()]
t = sum(li)
if t == 14:
    print(1)
elif t == 13:
    print(2)
elif t == 12:
    print(3)
elif t == 11:
    print(4)
else:
    print(5)

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

xs=input().rstrip('\n').split()
print(xs.index('0')+1)

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):
import sys
input = lambda: sys.stdin.readline().rstrip() 
sys.setrecursionlimit(10**7)
INF = 10**20
def I(): return int(input())
def F(): return float(input())
def S(): return input()
def LI(): return [int(x) for x in input().split()]
def LI_(): return [int(x)-1 for x in input().split()]
def LF(): return [float(x) for x in input().split()]
def LS(): return input().split()

def resolve():
    x = LI()

    print(x.index(0)+1)

if __name__ == '__main__':
    resolve()

Solution (Python):
import sys

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

def main():
    X = []
    X = list(input().split())
    for i in range(5):
        if X[i] == "0":
            print(i+1)
            return



main()

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

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

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

if a == 0:
    print(1)

elif b== 0:
    print(2)

elif c == 0:
    print(3)

elif d== 0:
    print(4)

else:
    print(5)

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

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

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

print(lis.index(0)+1)

Solution (Python):



x = input().split(" ")


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

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

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

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

Solution (Python):
lst = input()
lst = lst.split()
k = 0
for i in lst:
    k += int(i)
print(15-k)

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

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

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

Solution (Python):
a1,a2,a3,a4,a5= map(int, input().split())
if a1 == 0:
  k = 1
elif a2 == 0:
  k = 2
elif a3 == 0:
  k = 3
elif a4 == 0:
  k = 4
elif a5 == 0:
  k = 5
print(k)

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

for i,a in enumerate(A):
  if a==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):
import sys



if(__name__ == "__main__"):

    X= input().strip().split()
    N = 5
    XList = [0] * N
    for i in range(N):
        XList[i] = int(X[i])
        if(XList[i] != i+1):
            print(i+1)

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

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

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

ans = 0

if a == 0:
    ans += 1
if b == 0:
    ans += 2
if c == 0:
    ans += 3
if d == 0:
    ans +=4
if e == 0:
    ans += 5

print(ans)

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

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

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

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

Solution (Python):


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

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

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

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

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

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

def main():
    mod=10**9+7
    x=LI()
    ans=0
    for i in range(5):
        if x[i]==0:
            print(i+1)

main()

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

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

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

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

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

i = list_input.index(0)

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

Solution (Python):


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


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

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

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

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

if __name__ == '__main__':
    main()

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

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

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

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

print(X.index(0)+1)

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

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

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

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

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

Solution (Python):
import sys

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

if x1 == 0:
    print(1)
    sys.exit()

if x2 == 0:
    print(2)
    sys.exit()

if x3 == 0:
    print(3)
    sys.exit()

if x4 == 0:
    print(4)
    sys.exit()

if x5 == 0:
    print(5)
    sys.exit()

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

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

print(x.index(0) + 1)

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

Solution (Python):
if __name__ == '__main__':
	x = [int(a) for a in input().split()]
	c = 0

	for i in range(5):
		v = i+1-x[i]
		if v != 0:
			c = i+1

	print(c)

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

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

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

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

Solution (Python):


a = list(map(lambda x:int(x), input().split()))

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

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

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

ans = 0

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

print(ans)

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

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

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


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

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

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

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

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

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

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

Solution (Python):
a = input().split(" ")
m = len(a)
b = 0
while b < m :
    if a[b] == "0":
        print(b + 1)
    b = b + 1

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


def main():
    X = list(map(int,sys.stdin.readline().rstrip().split()))
    g = set([0,1,2,3,4,5])

    a = list(g - set(X))
    print(a[0])
main()

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


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