Given a chessboard of size n \times m, that is, with rows and columns.
There is only one piece on this chessboard - a rook. It is located in the lower left corner. There are no other figures.
Remember, the rook can move any number of cells horizontally or vertically, but not diagonally, in one move.
Find the number of cells the rook can move in one move.
The first line contains one integer (1 \leq n \leq 20).
The second line contains one integer (1 \leq m \leq 20).
Print the number of cells the rook can move in one move.
Example 1
Example 2
Explanation why the answer is in the first example can be seen on the picture above.
In the second example the answer is , as the rook can only move one cell up and two cells to the right.