To'garak uchun

Problem Tasks

# Date State
Not Contest

# Date State

D. Yakuniy_1_I

Time limit : 1000 ms
Memory limit : 64 mb

Berilgan yig’indini hisoblang:


$$s = \frac{x \cdot (1 + 1)!}{1!}+\frac{x^2 \cdot (2 + 1)!}{2!} + ... + \frac{x^n \cdot (n+1)!}{n!}$$


Kiruvchi ma’lumotlar: Birinchi satrda $n$ ($1 \le n \le 10)$ va $x$ $(1 \le x \le 8)$ butun sonlar berilgan.


Chiquvchi ma’lumotlar: Yagona $S$ butun sonni chop qiling.

Input
2 1
Output
5
Input
4 6
Output
7464