You are given the value of n and a. Determine the answer for the following series:
Two positive integers n and a.
Print the value of sum. It is known that the result is no more than 10^18.
10^18