#include <iostream>                                                          using namespace std;                                                         int main(){
  int a,p;
  cin >> a >> p;
  cout << (3*a+p)/2 << "\n";
  return 0;
}