import sys
input = sys.stdin.readline
A,P= [int(i) for i in input().split()]
sum = 3 * A + P
k = sum//2
print(k) import sys sys input = sys.stdin.readline input sys.stdin.readline sys.stdin sys stdin readline 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 sum = 3 * A + P sum 3 * A + P 3 * A 3 A P k = sum//2 k sum//2 sum 2 print(k) print k P= [int(i) for i in input().split()] [int(i) for i in input().split()] P sum = 3 * A + P 3 * A + P sum A,P= [int(i) for i in input().split()] [int(i) for i in input().split()] A input = sys.stdin.readline sys.stdin.readline input k = sum//2 sum//2 k
import sys
input = sys.stdin.readline
A,P= [int(i) for i in input().split()]
sum = 3 * A + P
k = sum//2
print(k)