#include<stdio.h>
#include<algorithm>
using namespace std;
int main()
{
   int n,m;
   scanf("%d%d",&n,&m);
   int k=(3*n+m)/2
    printf("%d\n",k);
    if(k==0)
        printf("\n");
    return 0;
}
