Fire Inspector#316

Fire Inspector

3 секунди
64 мегабайта
Трудно

In a chemistry classroom, there are chemical reagents stored consecutively on a shelf in special containers. According to the fire inspector's professional assessment, these reagents are conditionally divided into dangerous and safe. According to fire safety regulations, no two dangerous reagents should be placed adjacent to each other. For each such violation, the fire inspector, as required by his official duties, issues a fine of monetary units, and only to one official in the institution.

What is the maximum sum the fire inspector can contribute to the state budget, if he can inspect any number of educational institutions? In all institutions, the same number of chemical reagents is stored, and in each, the arrangement or set of reagents is different from the others.

Входни данни

The only line contains two numbers separated by a space: a natural number (N \leq 100000) — the number of reagents, and a real number with two decimal places (0 < M < 100000) — the maximum fine the fire inspector can impose on one person.

Изходни данни

Output the maximum amount the fire inspector can contribute to the state budget, with an accuracy of two decimal places.

Примери

Пример 1

Loading
Loading