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

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

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

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

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

print(count)

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

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

Solution (Python):

import sys






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


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

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

Solution (Python):
n = [int(i) for i in range(1, 6)]
x = [int(i) for i in input().split()]

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

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

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

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

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


if __name__ == "__main__":
    main()

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

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

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

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

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

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

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

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

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

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

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

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

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

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


def main():
    x = list(map(int, input().split()))
    for i,data in enumerate(x):
        if data==0:
            ans=i+1
            break
    print(ans)
    
if __name__ == "__main__":
    main()

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

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

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

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

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

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):
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):
x1, x2, x3, x4, x5 = (int(each) for each in input().split())

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

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

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

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

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

def main():
    import sys
    def input():
        return sys.stdin.readline()[:-1]
    A=list(map(int,input().split()))
    i=0
    for x in A:
        i+=1
        if x==0:
            print(i)
            sys.exit()



    
if __name__ == '__main__':
    main()

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

print(X.index(0)+1)

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

for index, i in enumerate(x):
    if i == 0:
        print(index+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):
x1,x2,x3,x4,x5=map(int,input('').split(' '))
if x1!=1:
    print(1)
elif x2!=2:
    print(2)
elif x3!=3:
    print(3)
elif x4!=4:
    print(4)
elif x5!=5:
    print(5)

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

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

Solution (Python):
import logging
logging.basicConfig(level=logging.INFO)
logging.info('info')


def main():
    x=list(map(int, input().split()))
    logging.info("hello")

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


if __name__ == "__main__":
    main()

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

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

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

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

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

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

Solution (Python):

from sys import stdin
input = stdin.readline

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

Solution (Python):
import sys
si = sys.stdin.readline
sys.setrecursionlimit(10000)


def main():
    l = [int(e) for e in si().split()]
    for i in range(5):
        if l[i] == 0:
            ans = i+1
    print(ans)


if __name__ == '__main__':
    main()

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

for x in lst:
  if x == 0:
    s = lst.index(x) + 1
    
print(s)

Solution (Python):
nums = {int(x) for x in input().split()}
print(list({1,2,3,4,5}-nums)[0])

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

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

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

inp = [x1, x2, x3, x4, x5]
for i in range(5):
    if inp[i] == 0:
        print(i+1)

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

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

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

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

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

print(int(x.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)
else:
    print(5)

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

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

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

for n,num in enumerate(nums):
  if n+1!=num:
    print(n+1)
    break

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

print(array.index(0)+1)

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

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

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

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

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

for ind,i in enumerate(numlist):
    if i == 0:
        print(ind+1)
        break

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

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

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

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

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

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

res = [[e,i] for i,e in enumerate(arr)]

res.sort()

print(res[0][1] + 1)

Solution (Python):
import sys

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

a, b, c, d, e = map(int, readline().split())

print(15 - a - b - c - d - e)

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)
elif(x[4]==0):
    print(5)

Solution (Python):
xlist = [int(s) for s in input().split(" ")]
for i, x in enumerate(xlist):
  if x == 0:
    break
print(i + 1)

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

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

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

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

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

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

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




S=input().split()

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

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

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

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

print(X.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):
print(list(input().split()).index('0')+1)

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

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

if __name__=='__main__':
    l=readinput()
    ans=main(l)
    print(ans)

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

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

Solution (Python):
variables = map(int, input().split())
for idx, vl in enumerate(variables):
    if vl == 0:
        print(idx + 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):
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):
array = list(map(int, input().strip().split()))
for i in range(len(array)):
    if array[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):
j=list(map(int,input().split()))
print(j.index(0)+1)

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

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

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

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

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

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

print(x.index(0)+1)

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

Solution (Python):
ls = list(map(int, input().split()))
n = 5
sm = (n * (n + 1)) // 2
print(abs(sum(ls) - sm))

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

for i,v in enumerate(ls):
    if v==0:
        ans = i+1
        break

print(ans)

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

print(x.index(0)+1)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

a = [idx+1 for idx, i in enumerate(x5) if i == 0]
print(a[0])

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

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

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

Solution (Python):
import numpy as np
a = list(map(int, input().split()))
aa = np.array(a)

tar = np.where(aa == 0)
ans = tar[0]
print(int(ans[0] + 1))

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

print(ans)

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

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


print(main())

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

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

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

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

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

print(x.index(0)+1)

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

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

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

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

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

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

Solution (Python):

import sys
input = sys.stdin.readline
x1,x2,x3,x4,x5 = (int(i) for i in input().split())
if x1==0:
    print(1)
elif x2==0:
    print(2)
elif x3==0:
    print(3)
elif x4==0:
    print(4)
elif x5==0:
    print(5)

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

Solution (Python):
A = [int(x) for x in input().split()]
B = [1,2,3,4,5]

for i in range(5):
    if A[i] != B[i]:
        print(B[i])

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

print(A.index(0)+1)

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

Solution (Python):
li = [i for i in map(int, input().split())]

print(li.index(0)+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)
    exit()

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")
elif x[4]==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(len(a)):
    if a[i]==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)
        break

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

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

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

Solution (Python):
a,b,c,d,e = map(int,input().split())
if a == 0:
    print(b-1)
elif b == 0:
    print(a+1)
elif c == 0:
    print(b+1)
elif d == 0:
    print(c+1)
else:
    print(d+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
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
 
def main():
    nums = [int(i) for i in readline().split()]
    idx = nums.index(0)
    print(idx+1)
if __name__ == '__main__':
    main()

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

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

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

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

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

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

Solution (Python):

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

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

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

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

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

Solution (Python):

"""AtCoder Beginner Contest 170: A - Five Variables
https://atcoder.jp/contests/abc170/tasks/abc170_a
"""


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


if __name__ == '__main__':
    main()

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)
    exit()
if b == 0:
    print(2)
    exit()
if c == 0:
    print(3)
    exit()
if d == 0:
    print(4)
    exit()
if e == 0:
    print(5)

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

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

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

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


print(x.index(0)+1)

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

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

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

print(15 - sum(X))

Solution (Python):
x1,x2,x3,x4,x5=map(int, input().split())
s = x1 + x2 + x3 + x4 + x5
result = 15-s
print(result)

Solution (Python):





















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


print(lisA.index(0)+1)

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

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

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

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

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()))
num = 1
for xi in x:
  if xi == 0:
    print(num)
    break
  num += 1

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

print(n.index(0) + 1)

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

print(15 - sum(vals))

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

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

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

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

if A == 0:
    print(1)
elif B == 0:
    print(2)
elif C == 0:
    print(3)
elif D == 0:
    print(4)
else:
    print(5)

Solution (Python):

import collections
import sys


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


def main():
    a = LI()
    ans = 0
    for i, v in enumerate(a):
        if v == 0:
            ans = i+1
            break

    print(ans)


if __name__ == '__main__':
    main()

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

if x1 == 0:
    print(1)

if x2 == 0:
    print(2)

if x3 == 0:
    print(3)

if x4 == 0:
    print(4)

if x5 == 0:
    print(5)

Solution (Python):
a = list(input().split(" "))
b = 0
for i in a:
	b += int(i)
print(15 - b)

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

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

Solution (Python):

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

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

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

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

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

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

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):
given_list = [int(i) for i in input().split()]

print(given_list.index(0)+1)

Solution (Python):
import sys
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(' '))
x = list(x)

for i, xi in enumerate(x):
    if xi == 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()))
print(X.index(0)+1)

Solution (Python):
def calc(N):
    for i in range(5):
        if N[i] == 0:
            return i + 1
    

N = [int(s) for s in input().split()]
print(calc(N))

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

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

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

for i in range(len(X_s)):
    num = X_s[i]

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

Solution (Python):

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

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

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

print(15-L)

Solution (Python):

x = [int(s) for s in input().split()]
for i, x_s in enumerate(x):
    if x_s == 0:
        print(i+1)
        exit()

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

def main():
    if os.getenv("ENV")=='LOCAL':
        sys.stdin = open(os.path.dirname(__file__)+'/input.txt', 'r')

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

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

if __name__ == '__main__':
    main()

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

Solution (Python):
ar = [0 for _ in range(5)]

ar = [int(s) for s in input().split()]

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

print(ans+1)

Solution (Python):
import sys

sys.setrecursionlimit(10 ** 6)
input = sys.stdin.readline
from math import floor, sqrt, factorial, hypot, log  
from heapq import heappop, heappush, heappushpop
from collections import Counter, defaultdict, deque
from itertools import accumulate, permutations, combinations, product, combinations_with_replacement
from bisect import bisect_left, bisect_right
from copy import deepcopy
from fractions import gcd
from random import randint


def ceil(a, b): return (a + b - 1) // b


inf = float('inf')
mod = 10 ** 9 + 7


def pprint(*A):
    for a in A:     print(*a, sep='\n')


def INT_(n): return int(n) - 1


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


def MF(): return map(float, input().split())


def MI_(): return map(INT_, input().split())


def LI(): return list(MI())


def LI_(): return [int(x) - 1 for x in input().split()]


def LF(): return list(MF())


def LIN(n: int): return [I() for _ in range(n)]


def LLIN(n: int): return [LI() for _ in range(n)]


def LLIN_(n: int): return [LI_() for _ in range(n)]


def LLI(): return [list(map(int, l.split())) for l in input()]


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


def F(): return float(input())


def ST(): return input().replace('\n', '')


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


if __name__ == '__main__':
    main()

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

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

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

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

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

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

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

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)