#include<stdio.h>
int main()
{
    int x,y,cost;
    scanf("%d%d",&x,&y);
    if(x>=1 || x<=100 || y>=1 || y<=100 )
    {
        if(y%2==0)
        {
            cost=x+(y/2);
            printf("%d\n",cost);
        }
    }
    return 0;
}
