| CodeRams Practice Problem Archive |
|---|
| Finished |
While watching the world cup, you wonder how many points your team has in the group stage. Recall that during the group stage teams are awarded three points for a win, one point for a tie, and zero points for a loss. For this problem, figure out how many group stage points your team has based on their record (wins, losses, and ties).
The only line of input contains three integers separated by hyphens (-). Each of these values represents how many wins, losses, and ties your team has had so far during the group stage, respectively.
Output a single integer p: the number of group stage points that your team currently has.
5-3-2
17
| Name |
|---|


