Problem hidden
This problem was hidden by Editorial Board member probably because it has incorrect language version or invalid test data, or description of the problem is not clear.

EIINTEREST1 - Buy computers

 

Piccolo is a gaming enthusiast so Piccolo decided to save some money so that by the end of the year he could buy a high-spec computer that could play all of his favorite games.
Every month, Piccolo deposits savings in the bank and the interest rate on the bank each month is fixed.
Piccolo is good at calculating but because it is near the end of the year, Piccolo wants to know how much money he will have to buy the machine.
You and Piccolo calculate how much money he has to buy the device.

Piccolo is a gaming enthusiast so Piccolo decided to save some money so that by the end of the year he could buy a high-spec computer that could play all of his favorite games.

Every month, Piccolo deposits savings in the bank and the interest rate on the bank each month is fixed.

Piccolo is good at calculating but because it is near the end of the year, Piccolo wants to know how much money he will have to buy the machine.

 

Input

The first line is a non-negative real number X, which is the bank rate per month that Piccolo sends.

The next line is a sequence of 12 non-negative integers (≤ 109) separated by a space, which corresponds to Piccolo's 12-month deposit.

Output

A single line is the amount of money that Piccolo receives at the end of the year.

Example

Input

Output

0.054

2000000 2500000 4500000 3500000 3000000 3200000 2400000 4000000 3100000 1800000 2700000 3900000

52181154


Added by:Ha Minh Ngoc
Date:2018-12-04
Time limit:1s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:CSHARP C++ 4.3.2 CPP CPP14 CPP14-CLANG FSHARP GO JAVA JS-MONKEY NODEJS PHP PYTHON PYPY PYPY3 PYTHON3 RUBY SQLITE SWIFT VB.NET
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.