| CodeRams Practice Problem Archive |
|---|
| Finished |
Your favorite ski resort has a certain number of easy trails, more difficult trails, most difficult trails, and expert-only trails. Given these values, find how many trails there are at the ski resort. Note that the same trail will never be two different difficulties.
The only line of input contains 4 space-separated integers, each representing the number of easy trails, more difficult trails, most difficult trails, and expert-only trails, respectively.
Print one positive integer: the total number of ski trails at the mountain.
20 16 13 6
55
| Name |
|---|


