apple, peace = (int(i) for i in input().split())
peace += apple*3
print(peace//2) int(i) for i in input().split() for i in input().split() i input().split() ().split () input split for i in input().split() int(i) int i apple, peace = (int(i) for i in input().split()) apple (int(i) for i in input().split()) peace peace += apple*3 peace apple*3 apple 3 print(peace//2) print peace//2 peace 2 peace += apple*3 apple*3 peace apple, peace = (int(i) for i in input().split()) (int(i) for i in input().split()) apple peace = (int(i) for i in input().split()) (int(i) for i in input().split()) peace
apple, peace = (int(i) for i in input().split())
peace += apple*3
print(peace//2)