

Time Limit: 2 sec / Memory Limit: 1024 MB
配点: 点
問題文
駅と 駅を結ぶ鉄道があり、運賃は 円です。
また、 駅と 駅を結ぶバスがあり、運賃は 円です。
joisinoお姉ちゃんは、 駅から 駅まで鉄道で移動し、 駅から 駅までバスで移動すると、バスの運賃が半額になる特別券を手に入れました。
この特別券を用いたとき、 駅から 駅まで移動するのにいくらかかるか求めてください。
制約
- は偶数
- 入力は全て整数
入力
入力は以下の形式で標準入力から与えられる。
出力
駅から 駅まで移動するのに 円かかるとき、 を出力せよ。
入力例 1Copy
81 58
出力例 1Copy
110
- 鉄道の運賃は 円です。
- バスの運賃は半額となるため、 ⁄ 円です。
よって、 駅から 駅まで移動するのに 円かかります。
入力例 2Copy
4 54
出力例 2Copy
31
Score: points
Problem Statement
There is a train going from Station to Station that costs yen (the currency of Japan).
Also, there is a bus going from Station to Station that costs yen.
Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station to Station by train and then travels from Station to Station by bus.
How much does it cost to travel from Station to Station if she uses this ticket?
Constraints
- is an even number.
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
If it costs yen to travel from Station to Station , print .
Sample Input 1Copy
81 58
Sample Output 1Copy
110
- The train fare is yen.
- The train fare is ⁄ yen with the % discount.
Thus, it costs yen to travel from Station to Station .
Sample Input 2Copy
4 54
Sample Output 2Copy
31