Discount Fare

AtCoder
IDabc113_a
Time2000ms
Memory256MB
Difficulty
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$ [samples]
Samples
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
API Response (JSON)
{
  "problem": {
    "name": "Discount Fare",
    "description": {
      "content": "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 ",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc113_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "There is a train going from Station $A$ to Station $B$ that costs $X$ yen (the currency of Japan).\nAlso, there is a bus going from Station $B$ to Station $C$ that costs $Y$ yen.\nJoisino got a special ...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments