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:
def I(): return int(input())
def LI(): return list(map(int,input().split()))
def MI(): return map(int,input().split())
def LLI(n): return [list(map(int, input().split())) for _ in range(n)]

#bisect.bisect_left(list,key)はlistのなかでkey未満の数字がいくつあるかを返す
#つまりlist[i] < x となる i の個数
#bisect.bisect_right(list, key)はlistのなかでkey以下の数字がいくつあるかを返す
#つまりlist[i] <= x となる i の個数
#これを応用することで
#len(list) - bisect.bisect_left(list,key)はlistのなかでkey以上の数字がいくつあるかを返す
#len(list) - bisect.bisect_right(list,key)はlistのなかでkeyより大きい数字がいくつあるかを返す
#これらを使うときはあらかじめlistをソートしておくこと！
li = LI()
c = 1
i = 0
while c:
    if li[i] == 0:
        print(i+1)
        c = 0
    i += 1

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x1, x2, x3, x4, x5 = map(int, input().split())
numbers = [x1,x2,x3,x4,x5]
for number in numbers:
    if number == 0:
        a = numbers.index(0)
        print(a + 1)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#ABC170-A
X = list(input().split())
for i in range(5):
  if X[i] == "0":
    print(i + 1)

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

Submission status: Accepted

Solution code:
n=list(map(int,input().split()))
p=sum(n)
f=15
ans=(f-p)
print(ans)

Submission status: Accepted

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

#print(A)

def hantei(list):
    for a in range(len(list)):
        if list[a] == 0:
            return a+1

print(hantei(A))

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

print(N.index(0)+1)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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:
print(input().strip().split().index("0") + 1)

Submission status: Accepted

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

x_list = list(map(int, input().split()))
ans = x_list.index(0) + 1

print(ans)

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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


X = [int(i) for i in input().strip().split()]
print(X.index(0) + 1)

Submission status: Accepted

Solution code:
def a():
    l = map(int, input().split())
    res = [i + 1 for i, v in enumerate(l) if v == 0]
    if len(res) > 1:
        r = res[-1]
    else:
        r = res[0]
    print(r)


if __name__ == "__main__":
    a()

Submission status: Accepted

Solution code:
x=list(map(str,input().split()))
X="".join(x)
print(X.find('0')+1)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input("").split(" ")
N = [int(s) for s in N]

print(N.index(0) + 1)

Submission status: Accepted

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

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

Submission status: Accepted

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

i = 0

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

Submission status: Accepted

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

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

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

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

Submission status: Accepted

Solution code:
lis = [int(e) for e in input().split()]

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
n = map(int, input().split(" "))
for index, i in enumerate(n, 1):
    if i == 0:
        print(index)

Submission status: Accepted

Solution code:
def main(istr, ostr):
    ls = list(map(int, istr.readline().strip().split()))
    for i in range(5):
        if ls[i] == 0:
            print(i + 1, file=ostr)


if __name__ == "__main__":
    import sys

    main(sys.stdin, sys.stdout)

Submission status: Accepted

Solution code:
# ABC170
# A Five Variables
X = list(input().split())
print(X.index('0') + 1)

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

Submission status: Accepted

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

print(A.index(0)+1)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x= list(map(int, input().split()))
sum = 0
for i in x:
    sum = sum + i
y = 15 - int(sum)
print(int(y))

Submission status: Accepted

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

Submission status: Accepted

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

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

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

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

Submission status: Accepted

Solution code:
v_list = list(map(int,input().split()))
for i in range(len(v_list)):
  if v_list[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:
import sys
def Ii():return int(sys.stdin.readline())
def Mi():return map(int,sys.stdin.readline().split())
def Li():return list(map(int,sys.stdin.readline().split()))

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

Submission status: Accepted

Solution code:
x = list(input().split())
for i in range(5):
#    logging.debug("i = {},x[i] = {}".format(i, x[i])) #
    if x[i] == "0":
        print(i + 1)
        exit()

#    logging.debug("n = {},f = {},f**b = {}".format(n, f, f**b))  #
#logging.debug("デバッグ終了")#

Submission status: Accepted

Solution code:
import sys

input = sys.stdin.readline

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

for i in range(len(lst)):
    if lst[i] == 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)
    exit(0)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = list(map(int, input().split()))  # n個の数字がリストに格納される

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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:
numbers = input().split(" ")
num = numbers.index("0")
print(num + 1)

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def solve(arr):
    for i in range(len(arr)):
        if arr[i]==0:
            return i+1

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

print(solve(arr))

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

for order, number in enumerate(five_numbers):
    if number == 0:
        if order == 0:
            print(five_numbers[order+1]-1)
            break
        print(five_numbers[order-1]+1)

Submission status: Accepted

Solution code:
list = list(map(int, input().split())) #i_1 i_2を取得し、iに値を入れる

print(15-list[0]-list[1]-list[2]-list[3]-list[4])

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
X = list(map(int, input().split()))
i = 0
while i < len(X):
    if X[i] == 0:
        print(i+1)
    i +=1

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
i = input().split()
print(i.index("0") + 1)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a=input()
l=a.split(" ")
b=l.index("0")
print(b+1)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
lx = [int(w) for w in input().split()]

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

Submission status: Accepted

Solution code:
import sys
import numpy as np

def Ss():
  return sys.stdin.readline().rstrip().split(' ')

def Is():
  ss = Ss()
  return map(int, ss) if len(ss) > 1 else int(ss[0])

a, b, c, d, e = Is()
print(15 - a - b - c - d - e)

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#template
def inputlist(): return [int(j) for j in input().split()]
#template
li = inputlist()
for i in range(5):
    if li[i] == 0:
        print(i+1)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

print(l.index(0)+1)

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

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

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

Submission status: Accepted

Solution code:
a = [int(i) for i in input().split()]
print(a.index(0)+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)
    break

Submission status: Accepted

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

if __name__ == "__main__":
    resolve()

Submission status: Accepted

Solution code:
num = list(map(int,input().split()))
nyan = 1
i = 0
while num[i]>0:
    nyan += 1
    i += 1
    
print(nyan)

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

for i in range(5):
    list_m.append(i+1)

for i in range(5):
    if int(list_sunuke[i]) != list_m[i]:
        print(list_m[i])

Submission status: Accepted

Solution code:
data=input().split()
for i in range(5):
    if int(data[i]) == 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:
# abc170_a.py
# https://atcoder.jp/contests/abc170/tasks/abc170_a

# A - Five Variables /
# 実行時間制限: 2 sec / メモリ制限: 1024 MB
# 配点 : 100点

# 問題文
# 5つの変数 x1,x2,x3,x4,x5があります。
# 最初、変数 xiには整数 iが代入されていました。
# すぬけくんは、これらの変数の中から 1つを選んで、その変数に 0を代入する操作を行いました。
# すぬけくんがこの操作を行ったあとの 5つの変数の値が与えられます。
# すぬけくんが 0を代入した変数がどれであったかを答えてください。

# 制約
#     入力として与えられる x1,x2,x3,x4,x5の値は、すぬけくんが操作を行ったあとのものとしてありえるものである。

# 入力
# 入力は以下の形式で標準入力から与えられる。
# x1 x2 x3 x4 x5

# 出力
# すぬけくんが 0を代入した変数が xi であるとき、整数 iを出力せよ。

# 入力例 1
# 0 2 3 4 5

# 出力例 1
# 1

# この場合、すぬけくんが 0を代入した変数は x1 なので、1を出力します。

# 入力例 2
# 1 2 0 4 5

# 出力例 2
# 3


global FLAG_LOG
FLAG_LOG = False


def log(value):
    # FLAG_LOG = True
    FLAG_LOG = False
    if FLAG_LOG:
        print(str(value))


def calculation(lines):
    # S = lines[0]
    # N = int(lines[0])
    # N, M = list(map(int, lines[0].split()))
    values = list(map(int, lines[0].split()))
    # values = list(map(int, lines[2].split()))
    # values = list()
    # for i in range(N):
    #     values.append(int(lines[i]))
    # valueses = list()
    # for i in range(N):
    #     valueses.append(list(map(int, lines[i+1].split())))

    for n in range(5):
        if values[n] == 0:
            result = n+1

    return [result]


# 引数を取得
def get_input_lines(lines_count):
    lines = list()
    for _ in range(lines_count):
        lines.append(input())
    return lines


# テストデータ
def get_testdata(pattern):
    if pattern == 1:
        lines_input = ['0 2 3 4 5']
        lines_export = [1]
    if pattern == 2:
        lines_input = ['1 2 0 4 5']
        lines_export = [3]
    return lines_input, lines_export


# 動作モード判別
def get_mode():
    import sys
    args = sys.argv
    global FLAG_LOG
    if len(args) == 1:
        mode = 0
        FLAG_LOG = False
    else:
        mode = int(args[1])
        FLAG_LOG = True
    return mode


# 主処理
def main():
    import time
    started = time.time()
    mode = get_mode()
    if mode == 0:
        lines_input = get_input_lines(1)
    else:
        lines_input, lines_export = get_testdata(mode)

    lines_result = calculation(lines_input)

    for line_result in lines_result:
        print(line_result)

    # if mode > 0:
    #     print(f'lines_input=[{lines_input}]')
    #     print(f'lines_export=[{lines_export}]')
    #     print(f'lines_result=[{lines_result}]')
    #     if lines_result == lines_export:
    #         print('OK')
    #     else:
    #         print('NG')
    # finished = time.time()
    # duration = finished - started
    # print(f'duration=[{duration}]')


# 起動処理
if __name__ == '__main__':
    main()

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
X = [int(s) for s in input().split()]

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

Submission status: Accepted

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

Submission status: Accepted

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

print(x.index(0) + 1)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def inp():
    return int(input())
def inpL():
    return list(map(int,input().split()))

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

Submission status: Accepted

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

Submission status: Accepted

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

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:
# -*- coding: utf-8 -*-

def main():

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

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

    print(ans)


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
import sys
array = list(map(int,input().split()))

print(array.index(0)+1)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#n = int(input())
#n, k = map(int, input().split())
l = list(map(int, input().split()))
#s = input()

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

print(A.index(0) + 1)

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# Generated by https://github.com/kyuridenamida/atcoder-tools
from typing import *
import itertools
import math
import sys

INF = float('inf')


def solve(x: "List[int]"):
    return x.index(0) + 1


def main():

    sys.setrecursionlimit(10 ** 6)

    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    x = [int(next(tokens)) for _ in range(5)]  # type: "List[int]"
    print(solve(x))


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

print(x.index(0) + 1)

Submission status: Accepted

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

print(15-x[0]-x[1]-x[2]-x[3]-x[4])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
from collections import defaultdict, Counter
from itertools import product, groupby, count, permutations, combinations
from math import pi, sqrt
from collections import deque
from bisect import bisect, bisect_left, bisect_right
from string import ascii_lowercase
from functools import lru_cache
import sys
sys.setrecursionlimit(10000)
INF = float("inf")
YES, Yes, yes, NO, No, no = "YES", "Yes", "yes", "NO", "No", "no"
dy4, dx4 = [0, 1, 0, -1], [1, 0, -1, 0]
dy8, dx8 = [0, -1, 0, 1, 1, -1, -1, 1], [1, 0, -1, 0, 1, 1, -1, -1]


def inside(y, x, H, W):
    return 0 <= y < H and 0 <= x < W


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


def sum_of_arithmetic_progression(s, d, n):
    return n * (2 * s + (n - 1) * d) // 2


def gcd(a, b):
    if b == 0:
        return a
    return gcd(b, a % b)


def lcm(a, b):
    g = gcd(a, b)
    return a / g * b


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

def main():
    solve()


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
import sys
X=map(int, sys.stdin.readline().split())
print X.index(0)+1

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

ans = None
for i, xi in enumerate(X):
    if xi == 0:
        ans = i + 1

print(ans)

Submission status: Accepted

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

ans=1
for X in Xlist:
	if X==0:
		print(ans)
	else:
		ans=ans + 1

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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


def main():
    print(list(map(int, readline().rstrip().split())).index(0) + 1)


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
class place:

    def __init__(self, a):
        b = len(a)
        
        for i in range(len(a)):
            if(a[i] == 0):
                print(i + 1)
                break



a = list(map(int,input().split()))
place(a)

Submission status: Accepted

Solution code:

def main():
    xls = list(map(int, input().split()))
    i = 1
    for _ in xls:
        if _ == 0:
            break
        else:
            i += 1

    print(i)



main()

Submission status: Accepted

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

Submission status: Accepted

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

T = a.index(0)
print(T+1)
#

Submission status: Accepted

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

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:
x=list(map(int,input().split()))
sum=0
for i in x:
    sum+=i
print(15-sum)

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

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

Submission status: Accepted

Solution code:
lis = input().split()
i = lis.index('0')

if i==0:
    ans = int(lis[1])-1
    print(ans)
else:
    ans = int(lis[i-1])+1
    print(ans)

Submission status: Accepted

Solution code:
S = sum(map(int, input().split()))

print(15 - S)

Submission status: Accepted

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

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