Problem:
Score: 100 points

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.

Sample Input 1

81 58

Sample 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.

Sample Input 2

4 54

Sample Output 2

31

Solution in C# (Mono 4.6.2.0) (judge verdict: Runtime Error)

using System;
using System.Linq;

namespace ConsoleApplication1{

    class PalaceInfo {
        private static int T;
        private static int A;
        
        //コンストラクタ
        public PalaceInfo(int t, int a) {
            T = t;
            A = a;
        }

        public int getBestPlaceNo(int[] list) {

            var minDiff = double.MaxValue;
            var bestPlaceIdx = 0;
            var tmp = 0.0;
            var diff = 0.0;

            for (int i = 0; i < list.Length; i++) {
                tmp = T - 0.006 * list[i];
                if ((diff = Math.Abs(A - tmp)) < minDiff) {
                    minDiff = diff;
                    bestPlaceIdx = i + 1;
                }
            }

            return bestPlaceIdx;
        }
    }
    
    
    internal class Program{
        
        public static void Main(string[] args) {

            var num = int.Parse(Console.ReadLine());
            var info = Console.ReadLine().Trim().Split().Select(s => int.Parse(s)).ToArray();
            var heigthList = Console.ReadLine().Trim().Split().Select(s => int.Parse(s)).ToArray();
            
            var pInfo = new PalaceInfo(info[0], info[1]);
            Console.WriteLine(pInfo.getBestPlaceNo(heigthList));
        }
    }
}