Rook
You are given a chessboard of size . That is, with rows and 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 chessboard. On it the rook can move to all the cells marked with green. There are only of them, so the answer is .
Input
The first line contains two integers and () — the size of chessboard.
Output
Print the number of cells the rook can move to in one move.
Examples
Note
An explanation of why the answer is to the first example is shown in the figure above.
In the second sample, the answer is , because the rook can only move one position up and two positions to the right.