A - Five Variables 解説 /

実行時間制限: 2 sec / メモリ制限: 1024 MB

配点 : 100

問題文

5 つの変数 x_1, x_2, x_3, x_4, x_5 があります。

最初、変数 x_i には整数 i が代入されていました。

すぬけくんは、これらの変数の中から 1 つを選んで、その変数に 0 を代入する操作を行いました。

すぬけくんがこの操作を行ったあとの 5 つの変数の値が与えられます。

すぬけくんが 0 を代入した変数がどれであったかを答えてください。

制約

  • 入力として与えられる x_1, x_2, x_3, x_4, x_5 の値は、すぬけくんが操作を行ったあとのものとしてありえるものである。

入力

入力は以下の形式で標準入力から与えられる。

x_1 x_2 x_3 x_4 x_5

出力

すぬけくんが 0 を代入した変数が x_i であるとき、整数 i を出力せよ。


入力例 1

0 2 3 4 5

出力例 1

1

この場合、すぬけくんが 0 を代入した変数は x_1 なので、1 を出力します。


入力例 2

1 2 0 4 5

出力例 2

3

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