In PUBG, there are three players in a team: Jugal, Hardik and Bhargav. In a game, Hardik has KAR98, Jugal has UMP9 and Bhargav has M416.
Now, they have their own rules while playing a game. Whenever Hardik fires one bullet then compulsory Jugal needs to fire two and Bhargav needs to fire four bullets
7.62mm bullet is used in Kar98, 9mm bullet is used in UMP9 and 5.56mm bullet is used in M416. Now your task is to find total bullets fired by the whole team(three players). You have given bullets of each player. It is possible that there is no firing by the three players, in this case, print 0.
Input :
The first line contains the positive integer a - the number of 7.62mm bullets.
The second line contains the positive integer b - the number of 9mm bullets.
The third line contains the positive integer c - the number of 5.56mm bullets.
Output :
Print the maximum number of bullets fired by the whole team.
Constrains :
1 ≤ a ≤ 1000
1 ≤ b ≤ 1000
1 ≤ c ≤ 1000
Hardik fired 3 bullets of 7.62mm, Jugal fired 6 bullets of 9mm and Bhargav fired 12 bullets of 5.56mm, so the answer is 3 + 6 + 12 = 21.