AtCoder Beginner Contest 113
A
Discount Fare
AtCoder
⌀ 0
原题
←B →
翻译中…

Problem Statement

翻译中…

There is a train going from Station $A$ to Station $B$ that costs $X$ yen (the currency of Japan).

翻译中…

Also, there is a bus going from Station $B$ to Station $C$ that costs $Y$ yen.

翻译中…

Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station $A$ to Station $B$ by train and then travels from Station $B$ to Station $C$ by bus.

翻译中…

How much does it cost to travel from Station $A$ to Station $C$ if she uses this ticket?

翻译中…

Constraints

翻译中…
  • $1 \leq X,Y \leq 100$
  • $Y$ is an even number.
  • All values in input are integers.
翻译中…

Input

翻译中…

Input is given from Standard Input in the following format:

翻译中…

X Y

翻译中…

Output

翻译中…

If it costs $x$ yen to travel from Station $A$ to Station $C$, print $x$.

翻译中…

样例

Input #1
81 58
Output #1
110
- The train fare is $81$ yen. - The train fare is $58$ ⁄ $2=29$ yen with the $50$% discount. Thus, it costs $110$ yen to travel from Station $A$ to Station $C$.
Input #2
4 54
Output #2
31
题目信息
题号
abc113_a
时间限制
2 s
内存限制
1024 MB

题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。