#Q172. 「一本通 5.4 例 1」国王

「一本通 5.4 例 1」国王

Description

Original problem from: SGU 223

Place kk kings on an n×nn \times n chessboard such that no two kings attack each other. A king can attack all 8 adjacent squares. Find the total number of valid configurations.

Input Format

A single line containing two integers nn and kk.

Output Format

Output the total number of valid configurations. If it's impossible to place the kings, output 00.

Sample 1

3 2

16

Sample 2

4 4

79

Constraints & Notes

For all test cases, 1n101\le n\le 10, 0kn20\le k\le n^2.