muss,piece=map(int,input().split())

total=muss*3+piece
print(total//2) muss,piece=map(int,input().split()) muss map(int,input().split()) map int input().split() ().split () input split piece total=muss*3+piece total muss*3+piece muss*3 muss 3 piece print(total//2) print total//2 total 2 total=muss*3+piece muss*3+piece total muss,piece=map(int,input().split()) map(int,input().split()) muss piece=map(int,input().split()) map(int,input().split()) piece
muss,piece=map(int,input().split())

total=muss*3+piece
print(total//2)