import java.util.*;

public class Main {

    private 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);
    }
    
}
