题目描述
Problem Description
Score: $ 200 $ points
There is a cube with side length $ N $. One vertex of the cube is at $ (0,0,0) $, and all its edges are parallel to either the $ x $-axis, $ y $-axis, or $ z $-axis.
Also, for any point inside or on the surface of the cube, with coordinates $ (x,y,z) $, it satisfies $0 \leq x$ and $0 \leq y$ and $0 \leq z$.
This space is cut by the plane $\alpha$ which satisfies $ x+y+z=K $. Find the volume of the part of the cube that includes the point $ (0,0,0) $ after the cut, and output the value multiplied by $ 6 $. It can be shown that this value is an integer.
Input Format
The input is given from the standard input in the following format:
```
\(N\) \(K\)
## Output Format
Output the volume of the cut cube multiplied by $ 6 $ on one line.
Do not forget to add a newline at the end of the output.
## Sample Input and Output
### Sample Input #1
3 1
### Sample Output #1
1
### Sample Input #2
3 4
### Sample Output #2
61
### Sample Input #3
3 100
### Sample Output #3
162
```
Notes/Hints
None
输入格式
见题面 Input 部分
输出格式
见题面 Output 部分