System of equations
Problem
Write a program for calculating
y
by the formula.
\(\begin{equation*} y(x) = \begin{cases} 0 &\text{at x = 0}\\ x^2-x-1 &\text{in other cases} \end{cases} \end{equation*}\)
Input format
Given one integer x (0 <= x <= 100).
Output fromat
Output one number -
y
.
Example