import java.util.*;
import java.util.stream.*;

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