import java.util.Scanner;

public class Main {

    static Scanner sc = new Scanner(System.in);

    public static void main(String[] args) {
        int a = sc.nextInt();
        int p = sc.nextInt();
        System.out.println((a*3+p)/2);
    }

}
