import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        int a,b;
        Scanner in = new Scanner(System.in);
        a = in.nextInt();
        b = in.nextInt();
        System.out.println((a*3+b)/2);
    }
}