import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        final Scanner sc = new Scanner(System.in);

        final int a = sc.nextInt();
        final int p = sc.nextInt();

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