import sys
A,P = map(int,input().split())

if not ( 0 <= A <= 100 and 0 <= P <= 100 ): sys.exit()

print( (A * 3 + P) // 2) import sys sys A,P = map(int,input().split()) A map(int,input().split()) map int input().split() ().split () input split P if not ( 0 <= A <= 100 and 0 <= P <= 100 ): sys.exit() not ( 0 <= A <= 100 and 0 <= P <= 100 ) 0 <= A <= 100 and 0 <= P <= 100 0 <= A <= 100 0 <= A 0 A 100 0 <= P <= 100 0 <= P 0 P 100 print( (A * 3 + P) // 2) print (A * 3 + P) // 2 A * 3 + P A * 3 A 3 P 2 A,P = map(int,input().split()) map(int,input().split()) A P = map(int,input().split()) map(int,input().split()) P
import sys
A,P = map(int,input().split())

if not ( 0 <= A <= 100 and 0 <= P <= 100 ): sys.exit()

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