eolymp
bolt
Try our new interface for solving problems
Problems

Very Easy!!!

Very Easy!!!

You are given the value of n and a. Determine the answer for the following series:

prb1210

Input

Two positive integers n and a.

Output

Print the value of sum. It is known that the result is no more than 1018.

Time limit 1 second
Memory limit 128 MiB
Input example #1
3 3
Output example #1
102
Input example #2
4 4
Output example #2
1252