import java.util.*;

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