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 Java8 (OpenJDK 1.8.0) (judge verdict: Runtime Error)

import java.util.Scanner;
import java.util.Arrays;


class Main {
	
	public static class cityname {
		int location = 0;
		int year = 0;
	}
	
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int M = scan.nextInt();
					
		cityname[] city = new cityname[M];
		int[][] order  = new int[N][M];
		int[] order_index = new int[N];
		
		for (int i = 0; i < M ;i++){
			city[i] =  new cityname();
			city[i].location = scan.nextInt()-1;
			city[i].year = scan.nextInt();
			order[city[i].location][order_index[city[i].location]] = city[i].year;
			order_index[city[i].location]++;
		}
		
		for (int i = 0; i < N ;i++){
			Arrays.sort(order[i]);
		}
		
		for  (int i = 0; i < M ;i++){
	
			for (int j=0; j < order_index[city[i].location];j++){
				if (city[i].year == order[city[i].location][M-j-1]){
					System.out.println(String.format("%06d", city[i].location+1)+String.format("%06d", order_index[city[i].location] - j));
					break;
				}	
			}

		}
	}
}