#include <stdio.h>
#include <stdlib.h>

int main()
{
    int x,y,t=0;
    while(~scanf("%d%d",&x,&y))
    {
        if(y%2==0)
        {
            t=x+(y/2);
        }
        printf("%d\n",t);
    }
    return 0;
}
