Integers
X
and
Y
are given. Calculate the number
Z
, according to the following rule:
Z = X + Y
, if
X <= Y
;
Z = 1 - X + Y
otherwise.
Input:
2 integers
X
and
Y are entered from the keyboard.
Imprint
It is necessary to display the value of the variable
Z.
Example
test number |
Input |
Output |
1 |
5 6 |
11 |
2 |
6 5 |
0 |