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

print(X.index(0)+1)

Submission status: Accepted

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

for index, i in enumerate(x):
    if i == 0:
        print(index+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:
x1,x2,x3,x4,x5=map(int,input('').split(' '))
if x1!=1:
    print(1)
elif x2!=2:
    print(2)
elif x3!=3:
    print(3)
elif x4!=4:
    print(4)
elif x5!=5:
    print(5)

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import logging
logging.basicConfig(level=logging.INFO)
logging.info('info')


def main():
    x=list(map(int, input().split()))
    logging.info("hello")

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


if __name__ == "__main__":
    main()

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
from sys import stdin
input = stdin.readline

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

Submission status: Accepted

Solution code:
import sys
si = sys.stdin.readline
sys.setrecursionlimit(10000)


def main():
    l = [int(e) for e in si().split()]
    for i in range(5):
        if l[i] == 0:
            ans = i+1
    print(ans)


if __name__ == '__main__':
    main()

Submission status: Accepted

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

for x in lst:
  if x == 0:
    s = lst.index(x) + 1
    
print(s)

Submission status: Accepted

Solution code:
nums = {int(x) for x in input().split()}
print(list({1,2,3,4,5}-nums)[0])

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

inp = [x1, x2, x3, x4, x5]
for i in range(5):
    if inp[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]
for i in l:
    if i==0:
        print(l.index(i)+1)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

i = xs.index(0)
print(i+1)

Submission status: Accepted

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

for n,num in enumerate(nums):
  if n+1!=num:
    print(n+1)
    break

Submission status: Accepted

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

print(array.index(0)+1)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

for ind,i in enumerate(numlist):
    if i == 0:
        print(ind+1)
        break

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

res = [[e,i] for i,e in enumerate(arr)]

res.sort()

print(res[0][1] + 1)

Submission status: Accepted

Solution code:
import sys

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline

a, b, c, d, e = map(int, readline().split())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
xlist = [int(s) for s in input().split(" ")]
for i, x in enumerate(xlist):
  if x == 0:
    break
print(i + 1)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
#A,V=map(int,input().split())
#B,W=map(int,input().split())
#N=int(input())

S=input().split()

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

def main(l):
    for i in range(5):
        if l[i]==0:
            return i+1

if __name__=='__main__':
    l=readinput()
    ans=main(l)
    print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
L = [int(i) for i in input().split()]
for i in range(len(L)):
    if L[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:
variables = map(int, input().split())
for idx, vl in enumerate(variables):
    if vl == 0:
        print(idx + 1)
        break

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

print(x.index(0)+1)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
ls = list(map(int, input().split()))
n = 5
sm = (n * (n + 1)) // 2
print(abs(sum(ls) - sm))

Submission status: Accepted

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

for i,v in enumerate(ls):
    if v==0:
        ans = i+1
        break

print(ans)

Submission status: Accepted

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

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

    print(ans+1)


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

a = [idx+1 for idx, i in enumerate(x5) if i == 0]
print(a[0])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import numpy as np
a = list(map(int, input().split()))
aa = np.array(a)

tar = np.where(aa == 0)
ans = tar[0]
print(int(ans[0] + 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(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)

Submission status: Accepted

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

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


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

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

Submission status: Accepted

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

for i in range(5):
    if a[i]==0:
        print(i+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:
aa = list(map(int, input().split()))
print((set([1,2,3,4,5]) - set(aa)).pop())

Submission status: Accepted

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

for x in a:
    if x == '0':
        print(a.index(x)+1)

Submission status: Accepted

Solution code:
# 初期入力
import sys
input = sys.stdin.readline
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)
elif x5==0:
    print(5)

Submission status: Accepted

Solution code:
A = [int(x) for x in input().split()]
B = [1,2,3,4,5]

for i in range(5):
    if A[i] != B[i]:
        print(B[i])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
li = [i for i in map(int, input().split())]

print(li.index(0)+1)

Submission status: Accepted

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

Submission status: Accepted

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

if x[0]==0 :
    print("1")
elif x[1]==0:
    print("2")
elif x[2]==0:
    print("3")
elif x[3]==0:
    print("4")
elif x[4]==0:
    print("5")

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
a,b,c,d,e = map(int,input().split())
if a == 0:
    print(b-1)
elif b == 0:
    print(a+1)
elif c == 0:
    print(b+1)
elif d == 0:
    print(c+1)
else:
    print(d+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
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
 
def main():
    nums = [int(i) for i in readline().split()]
    idx = nums.index(0)
    print(idx+1)
if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

for i in range(5):
    if li[i] == 0:
        print(i+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:
#!/usr/bin/env python
"""AtCoder Beginner Contest 170: A - Five Variables
https://atcoder.jp/contests/abc170/tasks/abc170_a
"""


def main():
    Xs = list(map(int, input().split()))
    print(Xs.index(0) + 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)
else:
	print(5)

Submission status: Accepted

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: Accepted

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

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

Submission status: Accepted

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

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


print(x.index(0)+1)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x=input().split()
for i in range(len(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==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()))

print(15 - sum(X))

Submission status: Accepted

Solution code:
x1,x2,x3,x4,x5=map(int, input().split())
s = x1 + x2 + x3 + x4 + x5
result = 15-s
print(result)

Submission status: Accepted

Solution code:
# from math import factorial,sqrt,ceil #,gcd
# from itertools import permutations,combinations,combinations_with_replacement
# from collections import deque,Counter
# from bisect import bisect_left
# from heapq import heappush,heappop
# from numba import njit
# from functools import lru_cache # 簡単メモ化 @lru_cache(maxsize=1000)
# from fractions import gcd

# from decimal import Decimal, getcontext
# # getcontext().prec = 1000
# # eps = Decimal(10) ** (-100)

# import numpy as np    # numpy.lcm()
# from scipy.sparse.csgraph import shortest_path, dijkstra, floyd_warshall, bellman_ford, johnson
# from scipy.sparse import csr_matrix
# from scipy.special import comb,perm #permはnPk
# import networkx as nx
# G = Graph()

# slist = "abcdefghijklmnopqrstuvwxyz"
lisA = list(map(int,input().split()))
# arrA = np.array(input().split(),dtype=np.int64)

print(lisA.index(0)+1)
# for row in board:
#     print(*row,sep="")    #unpackして間にスペース入れずに出力する
# print("{:.10f}".format(ans))
# print("{:0=10d}".format(ans))

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A,B,C,D,E = input().split()
A = int(A)
B = int(B)
C = int(C)
D = int(D)
E = int(E)

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()))
num = 1
for xi in x:
  if xi == 0:
    print(num)
    break
  num += 1

Submission status: Accepted

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

print(n.index(0) + 1)

Submission status: Accepted

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

print(15 - sum(vals))

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
A, B, C ,D, E= map(int,input().split())

if A == 0:
    print(1)
elif B == 0:
    print(2)
elif C == 0:
    print(3)
elif D == 0:
    print(4)
else:
    print(5)

Submission status: Accepted

Solution code:
# 幅優先探索（行きがけ）
import collections
import sys


def I(): return int(sys.stdin.readline().rstrip())
def LI(): return list(map(int, sys.stdin.readline().rstrip().split()))
def S(): return sys.stdin.readline().rstrip()
def LS(): return list(sys.stdin.readline().rstrip().split())


def main():
    a = LI()
    ans = 0
    for i, v in enumerate(a):
        if v == 0:
            ans = i+1
            break

    print(ans)


if __name__ == '__main__':
    main()

Submission status: Accepted

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

if x1 == 0:
    print(1)

if x2 == 0:
    print(2)

if x3 == 0:
    print(3)

if x4 == 0:
    print(4)

if x5 == 0:
    print(5)

Submission status: Accepted

Solution code:
a = list(input().split(" "))
b = 0
for i in a:
	b += int(i)
print(15 - b)

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
x1, x2, x3, x4, x5 = list(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(5):
    if x[i]==0:
        print(i+1)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

print(given_list.index(0)+1)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = map(int, input().split(' '))
x = list(x)
# print(x)
for i, xi in enumerate(x):
    if xi == 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:
def calc(N):
    for i in range(5):
        if N[i] == 0:
            return i + 1
    

N = [int(s) for s in input().split()]
print(calc(N))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

for i in range(len(X_s)):
    num = X_s[i]

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

Submission status: Accepted

Solution code:
#---
List = list(map(int, input().split()))
num = len(List)

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

Submission status: Accepted

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

print(15-L)

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
x = [int(s) for s in input().split()]
for i, x_s in enumerate(x):
    if x_s == 0:
        print(i+1)
        exit()

Submission status: Accepted

Solution code:
import sys
import os
import itertools
from collections import deque

def main():
    if os.getenv("ENV")=='LOCAL':
        sys.stdin = open(os.path.dirname(__file__)+'/input.txt', 'r')

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

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

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
ar = [0 for _ in range(5)]

ar = [int(s) for s in input().split()]

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

print(ans+1)

Submission status: Accepted

Solution code:
import sys

sys.setrecursionlimit(10 ** 6)
input = sys.stdin.readline
from math import floor, sqrt, factorial, hypot, log  # log2ないｙｐ
from heapq import heappop, heappush, heappushpop
from collections import Counter, defaultdict, deque
from itertools import accumulate, permutations, combinations, product, combinations_with_replacement
from bisect import bisect_left, bisect_right
from copy import deepcopy
from fractions import gcd
from random import randint


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


inf = float('inf')
mod = 10 ** 9 + 7


def pprint(*A):
    for a in A:     print(*a, sep='\n')


def INT_(n): return int(n) - 1


def MI(): return map(int, input().split())


def MF(): return map(float, input().split())


def MI_(): return map(INT_, input().split())


def LI(): return list(MI())


def LI_(): return [int(x) - 1 for x in input().split()]


def LF(): return list(MF())


def LIN(n: int): return [I() for _ in range(n)]


def LLIN(n: int): return [LI() for _ in range(n)]


def LLIN_(n: int): return [LI_() for _ in range(n)]


def LLI(): return [list(map(int, l.split())) for l in input()]


def I(): return int(input())


def F(): return float(input())


def ST(): return input().replace('\n', '')


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


if __name__ == '__main__':
    main()

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

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

Submission status: Accepted

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

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

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=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 = 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(5):
    if A[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)
        break

Submission status: Accepted

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

from pprint import pprint
from collections import deque, defaultdict
import itertools
import math
import sys

sys.setrecursionlimit(10 ** 6)
input = sys.stdin.buffer.readline
INF = float('inf')


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

for idx, num in enumerate(numbers):
    if num == 0:
        print(idx + 1)

Submission status: Accepted

Solution code:
a_list=list(map(int,input().split()))
for i in range(5):
    if a_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:
x = list(map(int,input().split()))
x.sort()
for i in range(1,5+1):
    if i not in x:
        print(i)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
#n, m, q = map(int, input().split())
#List = list(map(int, input().split()))
#req = [list(map(int, input().split())) for _ in range(q)]
#t = t[:-1]
#print(ans[j], end = "") 改行無しで出力
#[0]*n
List = list(map(int, input().split()))

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

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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