a,p=[int(i)for i in input().split()]
apple=3*a+p
print(apple//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 a,p=[int(i)for i in input().split()] a [int(i)for i in input().split()] p apple=3*a+p apple 3*a+p 3*a 3 a p print(apple//2) print apple//2 apple 2 apple=3*a+p 3*a+p apple a,p=[int(i)for i in input().split()] [int(i)for i in input().split()] a p=[int(i)for i in input().split()] [int(i)for i in input().split()] p
a,p=[int(i)for i in input().split()]
apple=3*a+p
print(apple//2)