N,P = map(int,input().split(" "))
print(((N*3)+P)//2) N,P = map(int,input().split(" ")) N map(int,input().split(" ")) map int input().split(" ") ().split () input split " " P print(((N*3)+P)//2) print ((N*3)+P)//2 (N*3)+P N*3 N 3 P 2 N,P = map(int,input().split(" ")) map(int,input().split(" ")) N P = map(int,input().split(" ")) map(int,input().split(" ")) P
N,P = map(int,input().split(" "))
print(((N*3)+P)//2)
