There is a grid with HH horizontal rows and WW vertical columns. Let (i,j)(i,j) denote the square at the ii-th row from the top and the jj-th column from the left. Find the number of squares that share a side with Square (R, C)(R,C). Here, two squares (a,b)(a,b) and (c,d)(c,d) are said to share a side if and only if |a-c|+|b-d|=1∣a−c∣+∣b−d∣=1 (where |x|∣x∣ denotes the absolute value of xx).
Constraints
All values in input are integers.
1 \le R \le H \le 101≤R≤H≤10
1 \le C \le W \le 101≤C≤W≤10
Input
Input is given from Standard Input in the following format: