#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int a, p;
  cin >> a >> p;
  cout << (p + (a * 3)) / 2;
  return 0;
}
