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: Runtime Error

Solution code:
xs[5] = []
for i in range(5):
  xs.append(int(input()))
  if not xs[i] = i:
    print i
    break

Submission status: Runtime Error

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

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

print(ans_ind)

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

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

print(ans_ind)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
lst = [0, 2, 3, 4, 5]
def find ( arr ):
  x = arr[0]
  for y in arr:
    if 0 == x:
  		return x + 1
find (lst)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = input().split(" ")
cnt=0
for i, ai in enumerate(a):
  if ai==0
  return i+1

Submission status: Runtime Error

Solution code:
n=input().split()
x = n.find('0')

print(int(x)+1)

Submission status: Runtime Error

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

import sys,copy,bisect,itertools,heapq,math
from heapq import heappop,heappush,heapify
from collections import Counter,defaultdict


x=S_LIST()


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

Submission status: Runtime Error

Solution code:
a = input().aplit(" ")
cnt=0
for i, ai in enumerate(a):
  if ai==0
  return i+1

Submission status: Runtime Error

Solution code:
arr = input().spilt()
arr = int(arr)
print(15-sum(arr))

Submission status: Runtime Error

Solution code:
x_list = [input()]
for i in range(5):
  if x_list[i] == 0:
    print(i)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
def sunukeaho(a, b, c, d, e):
	input("番号を入力しろ")
    if a==o:
    	print(1)
	elif b==o:
    	print(1)
	elif c==o:
    	print(1)
	elif d==o:
    	print(1)
    elif e==o:
    	print(1)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

for i in N:
  if A[i]==0:
    return i

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

_sum = sum(data)

print( 15-_sum )

Submission status: Runtime Error

Solution code:
a = int(input()).aplit(" ")
cnt=0
for i, ai in enumerate(a):
  if ai==0
  return i+1

Submission status: Runtime Error

Solution code:
#include<iostream>
using namespace std;
int main()
{
 int x1,x2,x3,x4,x5;
  cin>>x1>>x2>>x3>>x4>>x5;
  if(x1==0)
  cout<<"1";
  else if(x2==0)
  cout<<"2";
  else if(x3==0)
  cout<<"3";
  else if(x4==0)
  cout<<"4";
  else
  cout<<"5";
}

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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: Runtime Error

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: Runtime Error

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

print(lis.index(0)+1)

Submission status: Runtime Error

Solution code:
for i range(1,6):
  number = input()
  if number == '0':
    print i

Submission status: Runtime Error

Solution code:

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

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

print(ans)

Submission status: Runtime Error

Solution code:
i = 0
j = 0
while i < 5:
  k = input()
  if k == 0:
    j = j + 1
  
  i = i + 1

print(j)

Submission status: Runtime Error

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

Submission status: Runtime Error

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: Runtime Error

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

if 2*x <= y and y <= 4*x:
  if y % 2 == 0:
    print('Yes')
  else:
    print('No')
else:
  print('No')

Submission status: Runtime Error

Solution code:
a = input()
j = 1
for i in a:
  if i ==0 :
    print(j)
    j++

Submission status: Runtime Error

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: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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: Runtime Error

Solution code:
#include<iostream>
using namespace std;
int main()
{
 int x;
  for(int i=0;i<5;i++)
  {
    cin>>x;
    if(x==0)
    {
      cout<<i+1;
    }
  }
}

Submission status: Runtime Error

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

print(A.index(0) + 1)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
x1 = input()
x2 = input()
x3 = input()
x4 = input()
x5 = input()

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: Runtime Error

Solution code:
i = 0
j = 0
while i < 5:
  k = input()
  if k == 0:
    j = j + 1
  
  i = i + 1

Submission status: Runtime Error

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: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = map(int. input().split())
for x, n in enumarate(N, 1):
  if n == 0:
    print(x)
    break

Submission status: Runtime Error

Solution code:
import sys 
from collections import deque
sys.setrecursionlimit(10**6)
def S(): return sys.stdin.readline().rstrip()
def SL(): return map(str,sys.stdin.readline().rstrip().split())
def I(): return int(sys.stdin.readline().rstrip())
def IL(): return map(int,sys.stdin.readline().rstrip().split())
def LS(): return list(sys.stdin.readline().rstrip().split())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))

def main():
    x = LS()
    for i in len(x):
        if x[i] == '0':
            print(i)
            exit()
    return

if __name__=='__main__':
    main()

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
num = []
num = input().split(" ")
#print(num)

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

Submission status: Runtime Error

Solution code:
p=list(map(int,input().split()))
count=1
for item in p:
  if item==0:
    return count
  else:
    count+=1

Submission status: Runtime Error

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: Runtime Error

Solution code:
/* *>>>>>Anshit_Bhardwaj<<<<<* */
#include <bits/stdc++.h>
#define ll long long
#define f(i, x, n) for(int i = x; i < n; i++)
#define dbg(x) cout << x << endl
#define dbg2(x, y) cout << x << ' ' << y << endl
#define dbg3(x, y, z) cout << x << ' ' << y << ' ' << z << endl
#define mod 1000000007
using namespace std;

int main(){
    int a, ans;
    f(i, 0, 5){
        cin >> a;
        if(a == 0){
            ans = i+1;
        }
    }
    cout << ans << endl;
}

Submission status: Runtime Error

Solution code:
as= inst(input().split())
for a in as:
    if a ==0:
       return(a)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import sys 
from collections import deque
sys.setrecursionlimit(10**6)
def S(): return sys.stdin.readline().rstrip()
def SL(): return map(str,sys.stdin.readline().rstrip().split())
def I(): return int(sys.stdin.readline().rstrip())
def IL(): return map(int,sys.stdin.readline().rstrip().split())
def LS(): return list(sys.stdin.readline().rstrip().split())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))

def main():
    x = SL()
    ans = 0
    for i in len(x):
        if x[i] == '0':
            print(i)
            exit()
    return

if __name__=='__main__':
    main()

Submission status: Runtime Error

Solution code:
for i in range(5):
  n = input()
  if n == 0:
    print(i + 1)

Submission status: Runtime Error

Solution code:
#include<iostream>
using namespace std;
int main()
{
  int a[5];
  for(int i=0;i<5;i++)
  cin>>a[i];
  for(int i=0;i<5;i++)
  {
    if(a[i]==0)
    {
      cout<<i+1;
      break;
    }
  }
}

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import java.io.*;
import java.util.*;

public class five {
	static class InputReader {
		BufferedReader reader;
		StringTokenizer tokenizer;

		public InputReader(InputStream stream) {
			reader = new BufferedReader(new InputStreamReader(stream));
			tokenizer = null;
		}

		public String next() {
			if (tokenizer == null || !tokenizer.hasMoreTokens())
				try {
					tokenizer = new StringTokenizer(reader.readLine());
				} catch (IOException e) {
					throw new RuntimeException(e);
				}
			return tokenizer.nextToken();
		}

		public long nextLong() {
			return Long.parseLong(next());
		}

		public int nextInt() {
			return Integer.parseInt(next());
		}

		public void close() throws IOException {
			reader.close();
		}
	}

	public static void main(String[] args) throws IOException {
		InputReader f = new InputReader(System.in);
		PrintWriter out = new PrintWriter(System.out);

		for (int i = 1; i <= 5; i++) {
			if (f.nextInt() == 0) {
				System.out.println(i);
				break;
			}
		}
		
		f.close();
		out.close();
	}
}

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
def solve():
    l = list(map(int,input().split()))
    for i in range(5):
        if(l[i]==0){
            print(i+1)
        }
if __name__=='__main__':
    solve()

Submission status: Runtime Error

Solution code:
def main():
    from operator import itemgetter
    import sys
    sys.setrecursionlimit(10**9)
    input = sys.stdin.readline

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

main()

Submission status: Runtime Error

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

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

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

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

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

Submission status: Runtime Error

Solution code:
#include <iostream>
#include <vector>
#include <algorithm>
#include <iomanip>
using namespace std;

int main(){
    int x[5];
    for(int i=0; i<5; i++){
        cin >> x[i];
        if(x[i] == 0){
            cout << i+1 << endl;
            break;
        }
    }
    return 0;
}

Submission status: Runtime Error

Solution code:
a = [int(_) for _ in inpur().split()]
print(a.index(0)+1)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:

import sys
stdin = sys.stdin

def ns(): return stdin.readline().rstrip()
def ni(): return int(ns())
def na(): return list(map(int, stdin.readline().split()))

import numpy as np

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
#: Author - Soumya Saurav
import sys,io,os,time
from collections import defaultdict
from collections import OrderedDict
from collections import deque
from itertools import combinations
from itertools import permutations
import bisect,math,heapq
alphabet = "abcdefghijklmnopqrstuvwxyz"

input = sys.stdin.readline

########################################

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

Submission status: Runtime Error

Solution code:
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep1(i, n) for (int i = 1; i <= (int)(n); i++)
typedef int64_t Int;
typedef pair<Int,Int> P;

int main(){
    vector<int> X(5);
    rep(i,5){
        cin >> X[i];
        if(X[i] == 0){
            cout << i+1 << endl;
            return 0;
        }
    }

}

Submission status: Runtime Error

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

Submission status: Runtime Error

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