407059: GYM102697 030 World Cup (Easier Version)
Memory Limit:256 MB
Time Limit:1 S
Judge Style:Text Compare
Creator:
Submit:0
Solved:0
Description
030. World Cup (Easier Version)time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output
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).
InputThe 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.
OutputOutput a single integer p: the number of group stage points that your team currently has.
ExampleInput5-3-2Output
17