#include <bits/stdc++.h>
using namespace std;
int a, p;
int dd(int x, int y) {
  if (x > y) return x - y;
  return y - x;
}
int main() {
  cin >> a >> p;
  int k = (a * 3 + p) / 2;
  printf("%d\n\n", k);
  if (k == 0)
    printf("We cannot make an apple pie in this case, unfortunately.\n");
  return 0;
}
