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

print(X.index(0)+1)

Submission status: Accepted

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

Submission status: Accepted

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

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

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:
# import math
# from collections import Counter

# N = int(input()) # 1行, 単数
# arg = list(map(int, input().split())) # 1行, 配列
# D = Counter(arg) # 出現数カウント

# print('Yes')
# print('No')
# print()
arg = list(map(int, input().split())) # 1行, 配列

for index,i in enumerate(arg):

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

Submission status: Accepted

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

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

print(x)

Submission status: Accepted

Solution code:
line = input()
x1, x2, x3, x4, x5 = line.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,b,c,d,e=map(int,input().split())
k=[a,b,c,d,e]
ans=1
for i in range(0,5):
    if k[i]==0:
        ans=i+1
print(ans)

Submission status: Accepted

Solution code:
x=input()
xs=x.split()
xa=[1,2,3,4,5]

zero=xs.index('0')
print(xa[zero])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import numpy as np

def main():
    xs = [int(x) for x in input().split()]
    xs = np.array(xs)
    x = np.where(xs == 0)
    print(int(x[0] + 1))
    
    

main()

Submission status: Accepted

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

Submission status: Accepted

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

for i in range(5):
	if ar[i] is 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:
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(input().split())

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

i = x.index(0)

print(i+1)

Submission status: Accepted

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

print(s.index(0)+1)

Submission status: Accepted

Solution code:
S = list(input().split())
ans = 1
for i in range(len(S)):
    if S[i] != "0":
        ans += 1
    else:
        break
print(ans)

Submission status: Accepted

Solution code:

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

c=0
for i in x:
    c =c+1
    if i == 0:
        ans = c


print(ans)

Submission status: Accepted

Solution code:
import sys
readline = sys.stdin.buffer.readline
def even(n): return 1 if n%2==0 else 0

lst1 = list(map(int,readline().split()))

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

Submission status: Accepted

Solution code:
a = [int(i) for i in input().split()]
for i in range(0,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:
import sys
from math import factorial
from collections import Counter
from fractions import Fraction
import heapq, bisect, fractions
import math
import itertools
sys.setrecursionlimit(10 ** 5 + 10)
INF = 10**15 +5
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
MOD = 10**9 + 7

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

Submission status: Accepted

Solution code:
li = list(map(int,input().split()))
tmp_list=[1,2,3,4,5]

for i in range(0,5):
    if li[int(i)] != tmp_list[int(i)]:
        Ans=tmp_list[int(i)]

print(Ans)

Submission status: Accepted

Solution code:
import sys
import numpy as np

# 実行環境(0:vscode, 1:atcoder)
MODE = 1

# 入力の次元
DIMENSION = 1

# int型に変換
INT_TYPE = 1

if not (MODE):
    with open("input.txt", "r") as f:
        s = f.read()
else:
    s = sys.stdin.read()

if DIMENSION == 0:
    if INT_TYPE == 1:
        s = int(s)
elif DIMENSION == 1:
    if INT_TYPE == 0:
        s = s.split()
    elif INT_TYPE == 1:
        s = [int(x) for x in s.split()]
elif DIMENSION == 2:
    if INT_TYPE == 0:
        s = [x.split() for x in s.splitlines()]
    elif INT_TYPE == 1:
        s = [[int(y) for y in x.split()] for x in s.splitlines()]

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

Submission status: Accepted

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

for index,i in enumerate(s):
  if i == 0:
    print(index+ 1)
    exit()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def read_input(trans=int):
    return list(map(trans, input().split()))


original = set([1, 2, 3, 4, 5])
set_x = set(read_input())

print(list(original-set_x)[0])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# A - Five Variables

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

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

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:
def main ():
	A = []
	A = list(map(int,input().split()))

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

main ()

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

Submission status: Accepted

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

Submission status: Accepted

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

ans = 0

for i, a in enumerate(n):
    if a == 0:
        ans = i 
        
print(ans+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)
        break

Submission status: Accepted

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


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


# Generated by 1.1.7.1 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    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]"
    solve(x)

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = list(map(int, 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")
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()))
for i in range(len(a)):
  if a[i] == 0:
    print(i+1)
    break
  else:
    continue

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
li = [int(i) for i in input().split()]
t = sum(li)
if t == 14:
    print(1)
elif t == 13:
    print(2)
elif t == 12:
    print(3)
elif t == 11:
    print(4)
else:
    print(5)

Submission status: Accepted

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

xs=input().rstrip('\n').split()
print(xs.index('0')+1)

Submission status: Accepted

Solution code:
import sys
input = lambda: sys.stdin.readline().rstrip() 
sys.setrecursionlimit(10**7)
INF = 10**20
def I(): return int(input())
def F(): return float(input())
def S(): return input()
def LI(): return [int(x) for x in input().split()]
def LI_(): return [int(x)-1 for x in input().split()]
def LF(): return [float(x) for x in input().split()]
def LS(): return input().split()

def resolve():
    x = LI()

    print(x.index(0)+1)

if __name__ == '__main__':
    resolve()

Submission status: Accepted

Solution code:
import sys

def input():
    return sys.stdin.readline().strip()

def main():
    X = []
    X = list(input().split())
    for i in range(5):
        if X[i] == "0":
            print(i+1)
            return



main()

Submission status: Accepted

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

for i, num in enumerate(int_list):
    if num == 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:
numlist = list(map(int, input().split()))
ans = numlist.index(0) + 1
print(ans)

Submission status: Accepted

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

print(lis.index(0)+1)

Submission status: Accepted

Solution code:
#!/usr/bin/python3

#標準出力からの読み込み
x = input().split(" ")

#計算ロジック
print(x.index('0') + 1)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
lst = input()
lst = lst.split()
k = 0
for i in lst:
    k += int(i)
print(15-k)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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:
import sys



if(__name__ == "__main__"):

    X= input().strip().split()
    N = 5
    XList = [0] * N
    for i in range(N):
        XList[i] = int(X[i])
        if(XList[i] != i+1):
            print(i+1)

Submission status: Accepted

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

Submission status: Accepted

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

ans = 0

if a == 0:
    ans += 1
if b == 0:
    ans += 2
if c == 0:
    ans += 3
if d == 0:
    ans +=4
if e == 0:
    ans += 5

print(ans)

Submission status: Accepted

Solution code:
a,b,c,d,e = map(int, input().split())
li=[a,b,c,d,e ]
print(li.index(0)+1)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
line = list(map(int,input().split()))
a=line.index(0)
print(a+1)

Submission status: Accepted

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

Submission status: Accepted

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

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

def main():
    mod=10**9+7
    x=LI()
    ans=0
    for i in range(5):
        if x[i]==0:
            print(i+1)

main()

Submission status: Accepted

Solution code:
print(list(input().split()).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)

Submission status: Accepted

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

i = list_input.index(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)
    else:
        pass

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

Submission status: Accepted

Solution code:
# 

from sys import stdin
input = lambda: stdin.readline().rstrip()


X = list(map(int, 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(5):
    if x[i]==0:
        print(i+1)
        break

Submission status: Accepted

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

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

Submission status: Accepted

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

print(A.index(0) + 1)

Submission status: Accepted

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

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:
import sys

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

if x1 == 0:
    print(1)
    sys.exit()

if x2 == 0:
    print(2)
    sys.exit()

if x3 == 0:
    print(3)
    sys.exit()

if x4 == 0:
    print(4)
    sys.exit()

if x5 == 0:
    print(5)
    sys.exit()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
if __name__ == '__main__':
	x = [int(a) for a in input().split()]
	c = 0

	for i in range(5):
		v = i+1-x[i]
		if v != 0:
			c = i+1

	print(c)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding:utf-8

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

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

Submission status: Accepted

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

Submission status: Accepted

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

ans = 0

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

print(ans)

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = input().split(" ")
m = len(a)
b = 0
while b < m :
    if a[b] == "0":
        print(b + 1)
    b = b + 1

Submission status: Accepted

Solution code:
import io,sys
sys.setrecursionlimit(10**6)


def main():
    X = list(map(int,sys.stdin.readline().rstrip().split()))
    g = set([0,1,2,3,4,5])

    a = list(g - set(X))
    print(a[0])
main()

Submission status: Accepted

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


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

Submission status: Accepted

Solution code:
import numpy as np

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

for i in range(len(X)):
    if (i+1) != int(X[i]):
        print(i+1)
        break;

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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


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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = list(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()))
for i in range(len(x)):
  if x[i]==0:
    print(i+1)
    break

Submission status: Accepted

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

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

print(flag)

Submission status: Accepted

Solution code:
# a, b, c, d, e = map(int, input().split())
lst = map(int, input().split())
for i, y in enumerate(lst):
    if y == 0:
        print(i+1)

Submission status: Accepted

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

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


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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

print(ans)

Submission status: Accepted

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

print(list.index(0) + 1)

Submission status: Accepted

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

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] != i+1:
    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:
x = input().split()

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

Submission status: Accepted

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

print(x.index(0)+1)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

print(sunuke_list.index(0) +1)

Submission status: Accepted

Solution code:
a = 1
b = 2
c = 3
d = 4
e = 5
a,b,c,d,e = map(int,input().split())

if a != 1:
    print("1")

if b != 2:
    print("2")

if c != 3:
    print("3")

if d != 4:
    print("4")

if e != 5:
    print("5")

Submission status: Accepted

Solution code:
n = input()

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

print(s)

Submission status: Accepted

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

main()

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:
import sys

input = sys.stdin.readline

def main():
  x = list(map(int, input().rstrip().split()))
  print(x.index(min(x)) + 1)
  
if __name__ == "__main__":
  main()

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

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()))
j = 0
for i in x:
  j = j+1
  if(i == 0):
    ans = j
print(ans)

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
x = list(map(int, 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:
x = list(input().split())

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

print(int(s)+1)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#import numpy as np
import sys
#from collections import deque
#import copy


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

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


x = xnxn()

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
num = []
num = input().split(" ")
#print(num)

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

print(A.index(0)+1)