import java.util.*;
class Main{
    public static void main(String[] args){
	Scanner stdIn = new Scanner(System.in);
        int A = stdIn.nextInt();
	int P = stdIn.nextInt();
	int z =3*A+P;
	System.out.println(z/2);
    }
}
