A colony of robots operates according to the following rules:
In one year, robots produce new robots, and robots produce new robots.
Robots always try to produce as many new robots as possible.
Initially, there are robots in the colony. How many robots will there be after years? (All input values do not exceed , and the result does not exceed .)
A single line contains the integers , , , , , separated by spaces.
Output a single integer — the required number of robots.
Example 1