import java.util.Scanner;

public class Main {
	//half and half


	public static void main(String[] args){
		int A,P;
		Scanner sc = new Scanner(System.in);
		A=sc.nextInt();
		P=sc.nextInt();
		int n=A*3+P;
		System.out.println(n/2);


	}
}