public class Main {

	public static void main(String[] args) {

		int a = Integer.parseInt(args[0]);
		int p = Integer.parseInt(args[1]);
		int result;

		result = (a*3+p)/2;

		System.out.println(result);
	}
}
