リンゴが X 個,ミカンが Y 個,バナナが 3 個ある.リンゴとミカンとバナナが合わせて何個あるかを求めよ.
Input
入力は以下の形式で与えられる.
X
Y
Output
リンゴとミカンとバナナが合わせて何個あるか,単位 (個) を省いて出力せよ.
結果以外は何も出力しないこと.(入力を促す文章なども出力しないこと.)
解答形式については, 練習問題やその解答例 を参考にしても良い.
入力例 1
2
4
出力例 1
9
リンゴが 2 個,ミカンが 4 個,バナナが 3 個ある.リンゴとミカンとバナナは合わせて 9 個あるため, 9 を出力する.
入力例 2
15
30
出力例 2
48
リンゴとミカンとバナナは合わせて 48 個あるため, 48 を出力する.
入力例 3
0
0
出力例 3
3
リンゴとミカンとバナナは合わせて 3 個あるため, 3 を出力する.
Constraints
0 ≦ X ≦ 100 .
0 ≦ Y ≦ 100 .
入力される値はすべて整数である.
Example 1
Input
2 4
Output
9
Example 2
Input
15 30
Output
48
Example 3
Input
0 0
Output
3
Discussion
Threads about this problem. Spoilers are collapsed; wrap hints in
||double bars||.No discussion yet. Start a thread if something here needs explaining.