Quy luật

View as PDF



Problem types
Points: 100 Time limit: 1.0s Memory limit: 640M Input: stdin Output: stdout

Cho \(f(i, j)\) được tính theo công thức sau.

Input

  • 2 số nguyên dương \(x,y(x \leq 10^9,y \leq 5)\).

Output

  • \(f(x,y)\).

Example

Test 1

Input
6 3 
Output
25

Comments

There are no comments at the moment.