B. Lego Wall
time limit per test
3 seconds
memory limit per test
256 megabytes
input
standard input
output
standard output
Examples
Input
2 2
Output
3
Input
3 3
Output
12
Input
5 7
Output
1436232