fun main (args : Array<String>) {
	val (num1, num2) = readLine()!!.split(" ").map(String::toInt)
	val app1 = num1.toInt()
	var app2 = num2.toInt()
	app2 += app1 * 3
	var result : Int = (app2 / 2)
	println("${result}")
	
}