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: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import numpy as np

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

i = np.argmin(data)

print(i+1)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

for i in range(0,4):
    if n[i]==0:
        print(i+1)
        sys.exit()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
X=[map(int,input().split())]
a=len(X)
for i in range(a):
  if X[i]==0:
    print(i)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

for i in range(5):
    if i == 0:
        print(i)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

elif(b==0):
    print("1")

elif(c==0):
    print("1")

elif(d==0):
    print("1")
    
elif(e==0):
    print("1")

Submission status: Wrong Answer

Solution code:
if __name__ == '__main__':
    x = map(int, input().strip().split())
    for num, i in enumerate(x):
        if i == 0:
            print(num)
            break

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a=input()
print(a.find("0"))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

for i in l:
  if i == 0:
    print(l.index(i))
    break

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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 b == 0 :
    print(4)
elif b == 0 :
    print(5)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

print(ans)

Submission status: Wrong Answer

Solution code:
lists = list(input().split())
counter = 0
for i in lists:
  if i == '0':
    break
  counter = counter + 1
print(str(counter))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
import numpy as np

n = np.array(list(map(int, input().split())))

print(np.where(n == 0))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

for i in range(1, 5):
    if i not in x:
        print(i)
        break

Submission status: Wrong Answer

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)
        sys.exit()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
line=input().split(" ")
j=0
for i in line:
  j=j+1
  if i==0:
    print(j)

Submission status: Wrong Answer

Solution code:
x = list(map(int,input().split()))
for i in range(5):
    if i not in x:
        print(i)
        break

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a=input()
print(a.count("0"))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:

import sys, io, os, re
import bisect
from pprint import pprint
from math import sin, cos, pi, radians, sqrt, floor
from copy import copy, deepcopy
from collections import deque
from fractions import gcd
from functools import reduce
from itertools import groupby

n1 = lambda: int(sys.stdin.readline().strip())
nn = lambda: list(map(int, sys.stdin.readline().strip().split()))
f1 = lambda: float(sys.stdin.readline().strip())
fn = lambda: list(map(float, sys.stdin.readline().strip().split()))
s1 = lambda: sys.stdin.readline().strip()
sn = lambda: list(sys.stdin.readline().strip().split())
nl = lambda n: [n1() for _ in range(n)]
fl = lambda n: [f1() for _ in range(n)]
sl = lambda n: [s1() for _ in range(n)]
nm = lambda n: [nn() for _ in range(n)]
fm = lambda n: [fn() for _ in range(n)]
sm = lambda n: [sn() for _ in range(n)]

def array1(n): return [0] * n
def array2(n, m): return [[0] * m for x in range(n)]
def array3(n, m, l): return [[[0] * l for y in xrange(m)] for x in xrange(n)]

X = nn()

for i in range(len(X)):
    if (X[i] == 0):
        print(i)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

print(k.index(0))

Submission status: Time Limit Exceeded

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

Submission status: Time Limit Exceeded

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

Submission status: Accepted

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

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

print(x.index(0)+1)

Submission status: Accepted

Solution code:
x_1, x_2, x_3, x_4, x_5 = map(int, input().split())
ls = [x_1, x_2, x_3, x_4, x_5]
num = ls.index(0)
print(num + 1)

Submission status: Accepted

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

print(x.index(0) + 1)

Submission status: Accepted

Solution code:
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time, copy,bisect
#from operator import itemgetter
#from heapq import heappush, heappop
#import numpy as np
#from scipy.sparse.csgraph import breadth_first_order, depth_first_order, shortest_path, floyd_warshall, dijkstra, bellman_ford, johnson
#from scipy.sparse import csr_matrix
#from decimal import Decimal, ROUND_HALF_UP, ROUND_HALF_EVEN
import sys

sys.setrecursionlimit(10**7)
inf = 10**20
mod = 10**9 + 7

stdin = sys.stdin

ni = lambda: int(ns())
nf = lambda: float(ns())
na = lambda: list(map(int, stdin.readline().split()))
nb = lambda: list(map(float, stdin.readline().split()))
ns = lambda: stdin.readline().rstrip()  # ignore trailing spaces

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

print(Xs.index(0) + 1)

Submission status: Accepted

Solution code:

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

print(l.index(0)+1)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
from collections import deque, defaultdict, Counter
from itertools import accumulate, product, permutations, combinations
from operator import itemgetter
from bisect import bisect_left, bisect_right
from heapq import heappop, heappush
from math import ceil, floor, sqrt, gcd, inf
from copy import deepcopy
import numpy as np
import scipy as sp

INF = inf
MOD = 1000000007

X = [int(i) for i in input().split()]

tmp = 0
res = 0
res = 15 - sum(X)

print(res)

Submission status: Accepted

Solution code:
print(input().find('0')//2+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().split()))
for i in range(5):
    if l[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)
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(5):
    if i+1!=x[i]:
        print(i+1)

Submission status: Accepted

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

print(X.index(0) + 1)

Submission status: Accepted

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

Submission status: Accepted

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

print (X.index(0) + 1)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# from sys import stdin
# input = stdin.readline
from collections import Counter

def solve():
    x = list(map(int,input().split()))
    for i,v in enumerate(x):
        if v == 0:
            print(i+1)
            return


if __name__ == '__main__':
    solve()

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:
a,b,c,d,e = map(str,input().split())
s = [a,b,c,d,e]
num = s.index('0')
print(num+1)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
value_list = list(map(int, input().split()))
print(value_list.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)
        break
    else:
        continue

Submission status: Accepted

Solution code:
print(list(map(int,input().split())).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:
num = map(int,input().split())
s=sum(num)
print(15-s)

Submission status: Accepted

Solution code:
def main():
  nums = list(map(int,input().split()))
  for i,n in enumerate(nums):
    if n == 0:
      return i + 1

if __name__ == '__main__':
  print(main())

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
from sys import stdin
readline = stdin.readline
def i_input(): return int(readline().rstrip())
def i_map(): return map(int, readline().rstrip().split())
def i_list(): return list(i_map())

def main():
    print(i_list().index(0) + 1)

if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#                               #
    # author : samars_diary #
    # 18-09-2020 │ 18:46:42 #
#                               #

import sys, os.path

#if(os.path.exists('input.txt')):
    #sys.stdin = open('input.txt',"r")
    #sys.stdout = open('output.txt',"w")

sys.setrecursionlimit(10 ** 5)

def mod(): return 10**9+7
def i(): return sys.stdin.readline().strip()
def ii(): return int(sys.stdin.readline())
def li(): return list(sys.stdin.readline().strip())
def mii(): return map(int, sys.stdin.readline().split())
def lii(): return list(map(int, sys.stdin.readline().strip().split()))

#print=sys.stdout.write

def solve():
    a=lii()
    print(1+a.index(0))

for _ in range(1):
    solve()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b,c,d,e = (int(i) for i in 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()))
ans = X.index(0) + 1
print(ans)

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

print(X.index(0)+1)

Submission status: Accepted

Solution code:
#A問題

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

Submission status: Accepted

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

for i,j in enumerate(n,1):
  if 0 == int(j):
    print(i)

Submission status: Accepted

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

print(x.index(0)+1)

Submission status: Accepted

Solution code:
x, x1, x2, x3, x4 = map(int, input().split())

if x == 0:
    print(1)

if x1 == 0:
    print(2)

if x2 == 0:
    print(3)

if x3 == 0:
    print(4)

if x4 == 0:
    print(5)

Submission status: Accepted

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

def INT(): return int(input())
def MAPINT(): return map(int, input().split())
def LMAPINT(): return list(map(int, input().split()))
def STR(): return input()
def MAPSTR(): return map(str, input().split())
def LMAPSTR(): return list(map(str, input().split()))

f_inf = float('inf')

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

Submission status: Accepted

Solution code:
num = input().split()
i = 0
while  i < 5:
  if int(num[i]) != i + 1:
    print(i+1)
    break
  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:
# coding: utf-8
# Your code here!

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

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

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


def solve():
    readline = sys.stdin.buffer.readline
    mod = 10 ** 9 + 7
    x = list(map(int, readline().split()))
    print(x.index(0) + 1)


if __name__ == '__main__':
    solve()

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

n=10
for i in range(len(X)):
    if X[i] == 0:
        n = i

print(n+1)

Submission status: Accepted

Solution code:
str = input().split()
print(str.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:
def main():
    xs = list(map(int, input().split()))

    print(xs.index(0) + 1)


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

print(in_num.index(0)+1)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#ABC170A
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 x:
    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:
        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 = list(map(int,input().split()))
i = 0
while (x[i] != 0):
  i+=1
print(i+1)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

if __name__ == '__main__':
    X = list(map(int, input().split()))
    ans = main(X)
    print(ans)

Submission status: Accepted

Solution code:
X = list(map(int, input().split()))
ans = [1,2,3,4,5]
print(ans[X.index(0)])

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(1, 6):
    if X[i-1] == 0:
        print(i)

Submission status: Accepted

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

num = 1

for i in X:
    if i == 0:
        print(num)
    num += 1

Submission status: Accepted

Solution code:
def main():
    x_tuple = tuple(map(int, input().split()))

    print(x_tuple.index(0) + 1)


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

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