A centaur is a chess piece that moves both as a knight (in an -shape) and as a bishop (diagonally).
The possible moves of the centaur are illustrated in the diagram below (the position of the centaur is marked with a circle):

Consider an n \times n chessboard. The rows are numbered from to from top to bottom, and the columns are numbered from to from left to right. The square at the intersection of the -th row and the -th column is denoted as .
The centaur is located on an n \times n board at square , where 1 \leq i, j \leq n. Determine how many different squares the centaur can move to, according to its rules of movement.
The first line of each test contains the size of the board (n \leq 10^9). The second and third lines contain the coordinates of the centaur (1 \leq i, j \leq n).
For each test, output the number of different squares the centaur can move to.
Esempio 1