Imagine a dice game in which a player throws three dice. The player wins

The order in which the dice are thrown is unimportant.

Input

The amount of dots thrown with the dice. Every dice gets its own line.

Output

The prize the player receives after every throw.

Example

Input:

4
6
5

Output:

500