import itertools
import math
import fractions
import functools
import copy
a, p = map(int, input().split())
print((a*3+p)//2) import itertools itertools import math math import fractions fractions import functools functools import copy copy a, p = map(int, input().split()) a map(int, input().split()) map int input().split() ().split () input split p print((a*3+p)//2) print (a*3+p)//2 a*3+p a*3 a 3 p 2 p = map(int, input().split()) map(int, input().split()) p a, p = map(int, input().split()) map(int, input().split()) a
import itertools
import math
import fractions
import functools
import copy
a, p = map(int, input().split())
print((a*3+p)//2)
