Problem:
Score : 100 points

Problem Statement

You are given two positive integers a and b.
Let x be the average of a and b.
Print x rounded up to the nearest integer.

Constraints

a and b are integers.

1 \leq a, b \leq 100

Input

Input is given from Standard Input in the following format:

a b

Output

Print x rounded up to the nearest integer.

Sample Input 1

1 3

Sample Output 1

2

The average of 1 and 3 is 2.0, and it will be rounded up to the nearest integer, 2.

Sample Input 2

7 4

Sample Output 2

6

The average of 7 and 4 is 5.5, and it will be rounded up to the nearest integer, 6.

Sample Input 3

5 5

Sample Output 3

5

Solution in C (GCC 5.4.1) (judge verdict: Wrong Answer)

#include<stdio.h>
int main()
{
	char s[8001];
	int x, y, i, j;
	int direc=0, vect[1][8001], v[1], u[1], jud;
	v[0]=0; v[1]=0;
	u[0]=0; u[1]=0;
	for (i=1;i<=8000;i++){ vect[0][i]=0; vect[1][i]=0;}
	scanf("%s",s);
	scanf("%d %d",&x,&y);
	for (i=1;s[i]=='F';i++){x=x-1;
	}	// for first i's, you have no choice. So replace the problem by digesting them.
	for (j=i;s[j]!=0;j++){ 
		if (s[j]=='T'){ 
			direc = (direc +1)%2; v[direc]=v[direc]+1;
		}
		else vect[direc][v[direc]]=vect[direc][v[direc]]+1;		
	}
	u[0]=v[0]; u[1]=v[1];
	// then we should solve the problem of composing x,y with the given numbers.
	printf("No");
	return 0;
}