Time limit
1s
Memory limit
128 MB
A game uses three dice, each showing a value from 1 to 6. The prize is calculated by the following rules:
Given the three dice values, write a program that calculates the prize.
The first line contains three integers separated by spaces. Each integer is between 1 and 6, inclusive.
Print the calculated prize on the first line.