Yo`nalishlar
Hozirda online

Statistika

Masalalar soni: 909

Foydalanuvchilar soni: 8825

Jo'natishlar soni: 714634

Muhokama yozuvlari: 4541

Yangiliklar soni: 98

Yangiliklar izohlari: 1179


So'ngi izohlar

723. Very Easy!!!
Vaqt limiti: 1 sekund
Xotira limiti: 64 MB

 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 2*1018.

 Samples

Input

Output

1

3 3

102

2

4 4

1252

 

Tayyorladi: Azat Yusupov
Text from: e-olimp.com
Mening urinishlarim(0) Muhokama (14) Jo'natish Eng yaxshi yechimlar Barcha muvaffaqiyatli urinishlar(148) Barcha urinishlar(906)