import java.util.Scanner;

class Main {
  public static void main(String[] args) {
    Scanner stdIn = new Scanner(System.in);
    int a = stdIn.nextInt();
    int p = stdIn.nextInt();



    System.out.println((a*3 + p)/2);
  }
}