407040: GYM102697 011 Ski Sum
Memory Limit:256 MB
Time Limit:1 S
Judge Style:Text Compare
Creator:
Submit:0
Solved:0
Description
011. Ski Sumtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output
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.
InputThe 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.
OutputPrint one positive integer: the total number of ski trails at the mountain.
ExampleInput20 16 13 6Output
55