import java.util.Scanner;

public class Main {

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