import os, sys, re, math

(A, P) = [int(n) for n in input().split()]

print((A * 3 + P) // 2) import os, sys, re, math os sys re math int(n) for n in input().split() for n in input().split() n input().split() ().split () input split for n in input().split() int(n) int n (A, P) = [int(n) for n in input().split()] (A, P) A P [int(n) for n in input().split()] print((A * 3 + P) // 2) print (A * 3 + P) // 2 A * 3 + P A * 3 A 3 P 2
import os, sys, re, math

(A, P) = [int(n) for n in input().split()]

print((A * 3 + P) // 2)
