import java.util.*;

class Solution{

    public static void main(String[] args) {
        Scanner scan =new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        System.out.print((3*a+b)/2);
        
    }
}