AtCoder Beginner Contest 170
A
Five Variables
AtCoder
⌀ 0
原题
←B →
翻译中…

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$.

翻译中…

样例

Input #1
0 2 3 4 5
Output #1
1
In this case, Snuke assigned $0$ to $x_1$, so we should print $1$.
Input #2
1 2 0 4 5
Output #2
3
题目信息
题号
abc170_a
时间限制
2 s
内存限制
1024 MB

题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。