#include <iostream>

int main() {
  int apple = 0;
  int piece = 0;
  int pieceSum = 0;
  int result = 0;
  cin >> apple >> piece;
  pieceSum = apple * 3 + piece;
  result = pieceSum / 2;
  cout << result;
  
  return 0;
}