import sys
input = lambda : sys.stdin.readline().rstrip()

a, p = [int(x) for x in input().split()]
print((3*a + p) // 2) import sys sys input = lambda : sys.stdin.readline().rstrip() input lambda : sys.stdin.readline().rstrip() sys.stdin.readline().rstrip() sys.stdin.readline().rstrip sys.stdin.readline() sys.stdin.readline sys.stdin sys stdin readline rstrip int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x a, p = [int(x) for x in input().split()] a [int(x) for x in input().split()] p print((3*a + p) // 2) print (3*a + p) // 2 3*a + p 3*a 3 a p 2 input = lambda : sys.stdin.readline().rstrip() lambda : sys.stdin.readline().rstrip() input a, p = [int(x) for x in input().split()] [int(x) for x in input().split()] a p = [int(x) for x in input().split()] [int(x) for x in input().split()] p
import sys
input = lambda : sys.stdin.readline().rstrip()

a, p = [int(x) for x in input().split()]
print((3*a + p) // 2)