#include<stdio.h>
#include<iostream>

using namespace std;

int main(void){
  
  int a,p

  cin>>a>>p;
  
  int sumapple = 3 * a + p;
  
  int fin = sumapple / 2;
  
  
  cout<<fin<<endl;
  
  return 0;
  
  
}
