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