l = [int(i) for i in input().split() if i.isdigit()]
print(int((3 * l[0] + l[1]) / 2)) int(i) for i in input().split() if i.isdigit() for i in input().split() if i.isdigit() i input().split() ().split () input split i.isdigit() i.isdigit i isdigit if i.isdigit() int(i) int i l = [int(i) for i in input().split() if i.isdigit()] l [int(i) for i in input().split() if i.isdigit()] print(int((3 * l[0] + l[1]) / 2)) print int((3 * l[0] + l[1]) / 2) int (3 * l[0] + l[1]) / 2 3 * l[0] + l[1] 3 * l[0] 3 l[0] l 0 l[1] l 1 2 l = [int(i) for i in input().split() if i.isdigit()] [int(i) for i in input().split() if i.isdigit()] l
l = [int(i) for i in input().split() if i.isdigit()]
print(int((3 * l[0] + l[1]) / 2))