2853: ABC170A - Five Variables
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:1
Solved:1
Description
Time Limit: 2 sec / Memory Limit: 1024 MB
Problem Statement
We have five variables x1,x2,x3,x4, and x5.
The variable xi 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.
The variable xi 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.
Input
Input is given from Standard Input in the following format:
x1 x2 x3 x4 x5
Output
If the variable Snuke assigned 0 was xi, print the integer i.
Sample Input Copy
0 2 3 4 5
Sample Output Copy
1