ポジティブな数値の合計

入力として4つの数字が与えられたとき、それらの正の数の合計を計算するのがあなたのタスクです。もしすべての数字が負の場合、出力は0としてください。

入力

出力

1
3
-1
4

8

10
-3
-1
40

50

Constraints

Time limit: 2 seconds

Memory limit: 512 MB

Output limit: 1 MB

To check your solution you need to sign in
Sign in to continue