Five Variables

AtCoder
IDabc170_a
Time2000ms
Memory256MB
Difficulty
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$ [samples]
Samples
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
API Response (JSON)
{
  "problem": {
    "name": "Five Variables",
    "description": {
      "content": "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 th",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc170_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "We have five variables $x_1, x_2, x_3, x_4,$ and $x_5$.\nThe variable $x_i$ was initially assigned a value of $i$.\nSnuke chose one of these variables and assigned it $0$.\nYou are given the values of th...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments