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.

Input

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.

Output

Print one positive integer: the total number of ski trails at the mountain.

ExampleInput
20 16 13 6
Output
55

加入题单

上一题 下一题 算法标签: