There are jewelry shops. Each jewelry shop has three types of coins, gold, platinum, and diamond. The worth of gold, platinum, and diamonds coins is , , and respectively. You decided to go to each of jewelry shops and take coins from each of the shops by satisfying the following conditions:
You are required to collect coins from shops in such a way that the worth value of coins that are collected is maximized.
Input format
Output format
Print a single integer representing the maximum worth value that you can get.
Constraints