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



Sample input:
0 2 3 4 5


Sample output:
1

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
l = map(int, input().split())
for i, v in enumerate(l):
    if v == 0:
        print(i+1)

Submission status: Accepted

Solution code:
# coding: utf-8
num = list(map(int,input().split()))


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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
''''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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#<ABC170>
#<A>
x = list(map(int,input().split()))
for i in x:
    if x[i] == 0:
        print(i+1)
        exit()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

if __name__ == "__main__":
    solve()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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

Submission status: Accepted

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

res = arr.index(0)

print(res+1)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

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

print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#-*-coding:utf-8-*-

import sys

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

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

if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:


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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

print(x)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

print(a)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

print(x_ls.index(0)+1)


# 2darray [[0] * 4 for i in range(3)]

Submission status: Accepted

Solution code:
x = list(map(int, input().split()))
#print(x)

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

Submission status: Accepted

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

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

Submission status: Accepted

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

print(a)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

#print(A)

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
x_lst = []
x_lst = list(map(int, input().split()))

print(x_lst.index(0) + 1)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

ans = 0

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/python
# -*- Coding: utf-8 -*-

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

print(data.index(0)+1)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
import math as mt
input=sys.stdin.buffer.readline  
#t=int(input())
mod=10**9+7
t=1
for __ in range(t):
    l=[0]*6
    #x,n=map(int,input().split())
    
    #n=int(input())
    #a=[[0 for j in range(m)] for i in range(n)]
    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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

# a = [1, 2, 0, 4, 5]

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

ans = 1

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

print(count)

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import sys

#S = input()
#N = int(input())
#n = [list(map(int,input().split())) for i in range(N)]
#n, y = map(int, input().split())

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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


if __name__ == "__main__":
    main()

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

print(ans)

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A = [int(i) for i in input().split()]

print(A.index(0)+1)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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