Rook#174

Rook

1 second
256 megabytes
Very easy (≈850)

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.

Input

The first line contains one integer (1 \leq n \leq 20).

The second line contains one integer (1 \leq m \leq 20).

Output

Print the number of cells the rook can move in one move.

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading

Note

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.