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 numpy as np

X = np.array(input().split())

for i in range(len(X)):
    if (i+1) != int(X[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)
    break

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

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

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


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

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

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

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

Solution (Python):
numbers = [int(x) for x in input().split()]
flag = -1

for i in range(len(numbers)):
    if numbers[i] == 0:
        flag = i+1

print(flag)

Solution (Python):

lst = map(int, input().split())
for i, y in enumerate(lst):
    if y == 0:
        print(i+1)

Solution (Python):
X=list(map(int,input().split()))
print(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):
pre = input().split()
x = [int(s) for s in pre]


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

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

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

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

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

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

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

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

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

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

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

print(ans)

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

print(list.index(0) + 1)

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

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

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

print(x.index(0)+1)

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

for index, x in enumerate (list_x):
    if x == 0:
        print(index + 1)

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

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

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

if not(a == '1'):
    print('1')
elif not(b == '2'):
    print('2')
elif not(c == '3'):
    print('3')
elif not(d == '4'):
    print('4')
elif not(e == '5'):
    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):
for j,i in enumerate(input().split()):
  if i == "0":
    print(j+1)

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

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

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

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

print(ans)

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

Solution (Python):
n = input()
n = n.replace(' ','')
print(n.find('0')+1)

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

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

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

print(sunuke_list.index(0) +1)

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

Solution (Python):
a = 1
b = 2
c = 3
d = 4
e = 5
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):
n = input()

if n.find("1") == -1:
    print(1)
if n.find("2") == -1:
    print(2)
if n.find("3") == -1:
    print(3)
if n.find("4") == -1:
    print(4)
if n.find("5") == -1:
    print(5)

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

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

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

Solution (Python):
from sys import stdin
A = stdin.readline().rstrip().split()
print(A.index("0")+1)

Solution (Python):
li=list(map(int,input().split()))
s=15
for i in li:
  s=s-i

print(s)

Solution (Python):
import math
def main():
    x_list = [int(_) for _ in input().split()]
    out = x_list.index(0)
    
    print(out+1)

main()

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

for x in range(5):
  if a[x]=="0":
    print(x+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):
num = input().split()
ans = num.index('0')
print(ans+1)

Solution (Python):
import sys

input = sys.stdin.readline

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

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


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

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

Solution (Python):

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

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

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

s=(x.index("0"))

print(int(s)+1)

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

Solution (Python):

import sys




def xnxn(n=0, flag="v"):
    """
    args:
        int n: a number of lows to read
    example:
        input   1
        retrun  1

        input   1 2 3
        return  [1,2,3]
        input   1 2 3
                4 
        return  [[1,2,3],
                [4]]
    """
    if n == 0:
        temp = list(map(int, input().split()))
        if len(temp) == 1:
            if flag == "l":
                return temp
            else:
                return temp[0]
        elif len(temp) > 1:
            return temp
    else:
        temp = [list(map(int, input().split())) for _ in range(n)]
        return temp


x = xnxn()

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

Solution (Python):


num = []
num = input().split(" ")


for i in range(5):
    if i != 4:
        if int(num[i]) == 0:
            print(int(num[i+1])-1)
    elif int(num[4]) == 0:
        print(int(num[i-1])+1)

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

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

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

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

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

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

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

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

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

for x in l:
    count += 1
    if x == 0:
        print(count)
        break

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

Solution (Python):
n1, n2, n3, n4, n5 = map(int, input().split())

if n1 == 0:
  print(1)
elif n2 == 0:
  print(2)
elif n3 == 0:
  print(3)
elif n4 == 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):
import sys
nun_list = list(map(int, input().split()))
count=1
for i in nun_list:
    if i == 0:
        print(count)
        sys.exit()
    count+=1

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

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

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

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

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

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

Solution (Python):
s = input().split()
for idx, i in enumerate(s):
    if i == '0':
        print(idx+1)
        break

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

Solution (Python):
def FiveVariables():

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

    number = FiveVariables.index(0) + 1

    print(number)

if __name__ == '__main__':
    FiveVariables()

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

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

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

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

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

Solution (Python):


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

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

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

for i , j in enumerate(num, 1):
    if j == 0:
        ans = i

print(ans)

Solution (Python):
s = input().split()
if s[0] == "0":
    print("1")
elif s[1]=="0":
    print("2")
elif s[2] == "0":
    print("3")
elif s[3]=="0":
    print("4")
elif s[4] == "0":
    print("5")

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

Solution (Python):
from sys import stdin
data = list(map(int, stdin.readline().rstrip().split()))

print(15 - sum(data))

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

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

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

Solution (Python):

"""
Created on Sun Jun 14 21:02:52 2020

@author: NEC-PCuser
"""

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

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

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

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

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

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

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

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

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

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

answer = x.index(0) + 1

print(answer)

Solution (Python):
import math
from collections import deque
from collections import defaultdict
import itertools as it


def readInt():
	return int(input())
def readInts():
	return list(map(int, input().split()))
def readChar():
	return input()
def readChars():
	return input().split()
def factorization(n):
	res = []
	if n%2==0:
		res.append(2)
	for i in range(3,math.floor(n//2)+1,2):
		if n%i==0:
			c = 0
			for j in res:
				if i%j==0:
					c=1
			if c==0:
				res.append(i)
	return res
def fact2(n):
	p = factorization(n)
	res = []
	for i in p:
		c=0
		z=n
		while 1:
			if z%i==0:
				c+=1
				z/=i
			else:
				break
		res.append([i,c])
	return res
def fact(n):
	ans = 1
	m=n
	for _i in range(n-1):
		ans*=m
		m-=1
	return ans
def comb(n,r):
	if n<r:
		return 0
	l = min(r,n-r)
	m=n
	u=1
	for _i in range(l):
		u*=m
		m-=1
	return u//fact(l)
def combmod(n,r,mod):
	return (fact(n)/fact(n-r)*pow(fact(r),mod-2,mod))%mod
def printQueue(q):
	r=copyQueue(q)
	ans=[0]*r.qsize()
	for i in range(r.qsize()-1,-1,-1):
		ans[i] = r.get()
	print(ans)
class UnionFind():
	def __init__(self, n):
		self.n = n
		self.parents = [-1]*n

	def find(self, x): 
		if self.parents[x]<0:
			return x
		else:
			self.parents[x] = self.find(self.parents[x])
			return self.parents[x]

	def union(self,x,y):
		x = self.find(x)
		y = self.find(y)

		if x==y:
			return

		if self.parents[x]>self.parents[y]:
			x,y = y,x

		self.parents[x]+=self.parents[y]
		self.parents[y]=x

	def size(self,x):
		return -1*self.parents[self.find(x)]

	def same(self,x,y):
		return self.find(x)==self.find(y)

	def members(self,x): 
		root = self.find(x)
		return [i for i in range(self.n) if self.find(i)==root]

	def roots(self):
		return [i for i,x in enumerate(self.parents) if x<0]

	def group_count(self):
		return len(self.roots())

	def all_group_members(self):
		return {r: self.members(r) for r in self.roots()} 
def bitArr(n):
	x = 1
	zero = "0"*n
	ans = []
	ans.append([0]*n)
	for i in range(2**n-1):
		ans.append(list(map(lambda x:int(x),list((zero+bin(x)[2:])[-1*n:]))))
		x+=1
	return ans;
def arrsSum(a1,a2):
	for i in range(len(a1)):
		a1[i]+=a2[i]
	return a1
def maxValue(a,b,v):
	v2 = v
	for i in range(v2,-1,-1):
		for j in range(v2//a+1): 
			k = i-a*j
			if k%b==0:
				return i
	return -1
def copyQueue(q):
	nq = queue.Queue()
	n = q.qsize()
	for i in range(n):
		x = q.get()
		q.put(x)
		nq.put(x)
	return nq
def get_sieve_of_eratosthenes(n):
	
	data = [0,0,0]
	for i in range(3,n+1,2):
		data.append(i)
		data.append(0)
	for i in range(len(data)):
		interval = data[i]
		if interval!=0:
			for j in range(i+interval,n-1,interval):
				data[j] = 0
	
	ans = data[:]
	return ans

x = readInts()

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

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

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

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

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

print(ans)

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

print(nums.index(0)+1)

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

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

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

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

Solution (Python):
a,b,c,d,e=input().split()
result=a+b+c+d+e
count=0
for i in result:
    count+=1
    if i=='0':
        print(count)

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

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

Solution (Python):
a=input()
a=a.replace(" ","")
print(a.find("0")+1)

Solution (Python):
import random

a = input().split()

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

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

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

l = list(map(int ,input().split()))
ans = 0  
for i in  range(5) :
    if l[i] == 0  :
        ans = i

print(ans +1)

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

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

    print(X.index(0) + 1)


if __name__ == '__main__':
    main()

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

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

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)

Solution (Python):
import sys
import numpy as np

readline = sys.stdin.readline

x = np.array(readline().split(), dtype=np.int64)
ans = np.where(x==0)[0][0] + 1
print(ans)

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

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

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

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

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

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

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

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

n = [int(s) for s in n]

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

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

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

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

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

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

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

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

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

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

list = [a, b, c, d, e]
print(list.index(0) + 1)

Solution (Python):

x_list = input().split()
ans = 1
for x in x_list:
    if x == "0":
        break
    else:
        ans += 1

print(ans)

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

for index, num in enumerate(num_list):
    if num == 0:
        print(index + 1)
        break

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

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

Solution (Python):
X = list(map(int,input().split()))
ans = 0
for i in range(len(X)):
    if X[i]==0:
        ans=i
        break

print(ans+1)

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

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

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

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

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

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

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

Solution (Python):
"""
int 
float 


a=input()
a,b=map(int,input().split()) 

print(a)
ptrint("Hello")

for name in fruits: 
    print(name)

list0 = [] 
list0 = [1,2,3,4] 
list0 = [0]*10 
list1 = list(map(int, input().strip().split()))　
list1 = list1 + [6, 7, 8] 
list2.append(34) 
list.insert(3,10) 
len(list4) 
list5.count(2) 
abs(a) 
max(a,b) min(a,b) 

extension_1 = []
for i in range(10):
    extension_1.append(i)
extension_1


comprehension_1= [i for i in range(10)]
comprehension_1

"""
import math
a,b,c,d,e=map(int,input().split())

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

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

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

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

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

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

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

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

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


if 'unittest' not in globals():
    resolve()

Solution (Python):
if __name__=="__main__":
    
    x = map(int, input().split(' '))
    for idx, _x in enumerate(x):
        if _x == 0:
            print(idx+1)

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

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

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

Solution (Python):

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

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

Solution (Python):

N = input().split()
ans = N.index('0')
print(ans+1)

Solution (Python):

from math import gcd
from functools import reduce
from itertools import product
import numpy as np

def resolve():
  x = [int(x) for x in input().split(" ")]
  for i, X in enumerate(x):
    if X == 0:
      print(i+1)
      return True


if __name__ == "__main__":
  resolve()

Solution (Python):


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

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

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

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

Solution (Python):
x = input()
x = x.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(1,6):
    if i in x:
        continue
    print(i)
    break

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

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

Solution (Python):
x_1,x_2,x_3,x_4,x_5=input().split()
x_1=int(x_1)  
x_2=int(x_2)   
x_3=int(x_3)   
x_4=int(x_4)   
x_5=int(x_5)
i=1
if x_1==0:
    print(1)
if x_2==0:
    print(2)
if x_3==0:
    print(3)
if x_4==0:
    print(4)
if x_5==0:
    print(5)

Solution (Python):
import numpy as np


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


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

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

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

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

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

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

print(x.index(0)+1)

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

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

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

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

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

for i, e in enumerate(data):
  if e == 0:
    print(i + 1)
    break

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

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

Solution (Python):
p=list(map(int,input().split()))
count=1
for item in p:
  if item==0:
    print(count)
  else:
    count+=1
    continue

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

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

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

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

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

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

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

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

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

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

Solution (Python):
def main():

    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)

main()

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

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

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

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

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

    ans += 1

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

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

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

Solution (Python):
import copy

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