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

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

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

Solution (Python):
import numpy as np

Xs = np.array(list((map(int, input().split()))))
ans = 1 + 2 + 3 + 4 + 5
print(ans - Xs.sum())

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

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

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

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


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


if __name__ == '__main__':
    main()

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

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

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

Solution (Python):
x=str(input())
print(x.find('0')//2+1)

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

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

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

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

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

Solution (Python):

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

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

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

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

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

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

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

print(n.index(0) +1 )

Solution (Python):
mod = 1000000007
eps = 10**-9


def main():
    import sys
    input = sys.stdin.readline

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


if __name__ == '__main__':
    main()

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

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

for i , x in enumerate(x_list):
  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)
        break

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

Solution (Python):
N = map(int, input().split())
for x, n in enumerate(N, 1):
  if n == 0:
    print(x)
    break

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


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

if __name__ == '__main__':
    main()

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):
a1, a2, a3, a4, a5 = map(int, input().split())
if a1 == 0:
    print('1')
if a2 == 0:
    print('2')
if a3 == 0:
    print('3')
if a4 == 0:
    print('4')
if a5 == 0:
    print('5')

Solution (Python):



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

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

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

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

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

Solution (Python):
import sys 
from collections import deque
sys.setrecursionlimit(10**6)
def S(): return sys.stdin.readline().rstrip()
def SL(): return map(str,sys.stdin.readline().rstrip().split())
def I(): return int(sys.stdin.readline().rstrip())
def IL(): return map(int,sys.stdin.readline().rstrip().split())
def LS(): return list(sys.stdin.readline().rstrip().split())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))

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

if __name__=='__main__':
    main()

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

print(x.index(0)+1)

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

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):
def actual(X):
    idx = X.index(0)

    return [1, 2, 3, 4, 5][idx]

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

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

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

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

for i, x in enumerate(Xs):
    index = i+1
    if index != x:
        print(index)
        break

Solution (Python):


import sys
import math


debug = False

def log(text):
    if debug:
        print(text)

def parse_input(lines_as_string = None):

    global debug
    lines = []
    if lines_as_string is None:
        debug = False
        
        
        lines.append(input())
    else:
        debug = True
        lines = [e for e in lines_as_string.split("\n")][1:-1]

    x = [int(e) for e in lines[0].split(' ')]

    return (x, )


def solve(x):



    return x.index(0) + 1
    


def main():
    
    result = solve(*parse_input())
    if isinstance(result, list):
        for r in result:
            print("%s" % r, sep='')
    else:
        print("%s" % result, sep='')

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

Solution (Python):

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


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

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

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

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

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

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

mylist = list(MI())
print(mylist.index(0)+1)

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

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

Solution (Python):
''''atcoder beginner contest-170'''

import math
from collections import defaultdict
def r():
    return int(input())
def rm():
    return map(int,input().split())
def rl():
    return list(map(int,input().split()))

'''A'''
a=rl()
b=defaultdict(int)
for i in a:
    b[i]=1
for i in range(1,len(a)+1):
    if b[i]==0:
        print(i)
        break

Solution (Python):
a= input().split()
count =0
for i in a:
    count += 1
    if int(i) ==0:
        print(count)

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

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

Solution (Python):
def five_variables():
    num_str = input()
    num_list = num_str.split()
    count = 0
    for i in num_list:
        count += 1
        if i == '0':
            print(count)
            return
        
five_variables()

Solution (Python):


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

if __name__ == "__main__":
    solve()

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

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

Solution (Python):
import sys

x = list(map(int, sys.stdin.readline().strip().split()))
origin = [1, 2, 3, 4, 5]

for i in origin:
    if i not in x:
        ans = i
        print(ans)
        break

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

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

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

Solution (Python):



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

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

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

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

def ns(): return stdin.readline().rstrip()
def ni(): return int(ns())
def na(): return list(map(int, stdin.readline().split()))

import numpy as np

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

Solution (Python):
import numpy as np
import math
import collections


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:
        print(i+1)

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

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

res = arr.index(0)

print(res+1)

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

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

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

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

for i in range(5):
    if a[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)
elif e == 0:
    print(5)

Solution (Python):


import sys

def main():
    numbers=[]
    numbers = list(map(int,input().split()))

    print(int(numbers.index(0))+1)

if __name__ == "__main__":
    main()

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

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

index = 1
for i in nums:
  if i == '0':
    print(index)
    break
  index += 1

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

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

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

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

Solution (Python):


num = list(map(int, input().rsplit()))
print(num.index(0) + 1)

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

Solution (Python):
S = list(input().split())
for k,s in enumerate(S):
  if s == '0':
    print(k+1)

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

for i,a in enumerate(x):
  if a==0:
    break
if i==(len(x)-1):
  print(x[i-1]+1)
else:
  print(x[i+1]-1)

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

Solution (Python):
import sys
sys.setrecursionlimit(4100000)
import math
INF = 10**9
import fractions

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

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



if __name__ == '__main__':
    main()

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

  times = 1

  for i in L:
    if i == 0:
      print(times)
      exit()
    else:
      times += 1
  

if __name__ == '__main__':
  main()

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

Solution (Python):

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

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

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

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

print(x)

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

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

print(i+1)

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

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

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

Solution (Python):
def main():
  li = list(map(int,input().split()))
  count = 0
  for i in li:
    count += 1
    if i == 0:
      ans = count
  print(ans)
 
if __name__ == '__main__':
  main()

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

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

a = 0
for i, xi in enumerate(x):
    if xi == 0:
        a = i+1
        break

print(a)

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

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

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

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

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


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

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

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

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

print(l.index(0)+1)

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

print(a)

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

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

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

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

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

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

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

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

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

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

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



for i in range(len(A)):
    if A[i]==int(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_lst = []
x_lst = list(map(int, input().split()))

print(x_lst.index(0) + 1)

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

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

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

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

for i in range(len(K)):
    if K[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 = 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):
xs = [int(i) for i in input().split()]
for i, v in enumerate(xs):
    if v == 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):
import sys
num = [1,2,3,4,5]
data = [int(i) for i in input().split()]

for i in range(5):
    if data[i] != num[i]:
        print(i + 1)
        sys.exit()

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

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

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

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

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

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

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

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

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

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

Solution (Python):
import numpy as np
x = list(map(int, input().split()))
x = np.array(x)
print(np.where(x==0)[0][0] + 1)

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

ans = 0

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

Solution (Python):
a = [1,2,3,4,5]
b = list(input().split())

print(a[b.index("0")])

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

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

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

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

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

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

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

Solution (Python):
arrays = list(map(int, input().split()))
print(f'{arrays.index(0)+1}')

Solution (Python):



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

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

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

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

Solution (Python):
import sys
def input():
    return sys.stdin.readline()[:-1]


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

    
if __name__ == "__main__":
    main()

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

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

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

Solution (Python):
X=input().split();
c=1;
for x in X:
  if x=='0':
    print(c);
  else:
    c+=1;

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

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

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

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

Solution (Python):

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


if __name__ == '__main__':
    main()

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

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

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

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

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

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

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

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

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

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

print(data.index(0)+1)

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

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

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

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

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

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

if a == 0:
    print(1)

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

Solution (Python):
import sys
import math as mt
input=sys.stdin.buffer.readline  

mod=10**9+7
t=1
for __ in range(t):
    l=[0]*6
    
    
    
    
    x=list(map(int,input().split()))
    for i in x:
        l[i]=1
    for i in range(6):
        if l[i]==0:
            print(i)
            break

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

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

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

Solution (Python):
A=list(map(int,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)
else:
    print(5)

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



for i, ai in enumerate(a):
  if ai == 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 = map(int, input().split())
for i, x in enumerate(X):
    if x == 0:
        print(i+1)

Solution (Python):
def _main(x1, x2, x3, x4, x5):
    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)


_main(*map(int, input().split()))

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

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

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

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

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

ans = 1

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

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

Solution (Python):

import itertools
from collections import deque,Counter
import bisect
import heapq

def IN(): return int(input())
def sIN(): return input()
def MAP(): return map(int,input().split())
def LMAP(): return list(map(int,input().split()))
def TATE(n): return [input() for i in range(n)]
MOD = 10**9 + 7

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

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

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

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

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

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

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

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

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