You are given a chessboard of size n×m. That is, with n rows and m columns.
There is only one figure on this chessboard - a rook. It is located in the lower left corner. There are no more figures.
Recall that a rook in one move can move any number of cells horizontally or vertically, but not diagonally.
Find the number of cells that the rook can move to in one move.
The picture shows a traditional 8×8 chessboard. On it the rook can move to all the cells marked with green. There are only 14 of them, so the answer is 14.
The first line contains two integers n and m (1≤n,m≤20) — the size of chessboard.
Print the number of cells the rook can move to in one move.
An explanation of why the answer is 14 to the first example is shown in the figure above.
In the second sample, the answer is 3, because the rook can only move one position up and two positions to the right.