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

Solution in C++ (GCC 9.2.1) (judge verdict: Accepted)

/*
 *  Lang    : C++
 *  Author  : little_angel
 */
#include<bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>

using namespace std;
using namespace __gnu_pbds;

//#define int long long
#define oset tree < int , null_type , less<> , rb_tree_tag , tree_order_statistics_node_update >
const int mod = 998244353;
//const int inf = 1e18;
const int MAX = 1e6 + 10;

//    auto random_address = [] {
//        char *p = new char;
//        delete p;
//        return (uint64_t) p;
//    };
//    mt19937_64 rng(chrono::steady_clock::now().time_since_epoch().count() * (random_address() | 1ull));


signed main() {
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);
    cout.tie(nullptr);

    vector<int> a(5);
    for (auto &i:a)cin >> i;
    cout << find(a.begin(), a.end(), 0ll) - a.begin() + 1 << endl;
}