import sys
sys.setrecursionlimit(10 ** 9)
input = sys.stdin.readline
from itertools import permutations,  combinations, accumulate
from functools import *
from collections import deque, defaultdict, Counter
from heapq import heapify, heappop, heappush, heappushpop

INF = float('inf')
NIL = - 1


A, P = map(int, input().split())
print((A * 3 + P) // 2) import sys sys sys.setrecursionlimit(10 ** 9) sys.setrecursionlimit sys setrecursionlimit 10 ** 9 10 9 input = sys.stdin.readline input sys.stdin.readline sys.stdin sys stdin readline from itertools import permutations,  combinations, accumulate from functools import * from collections import deque, defaultdict, Counter from heapq import heapify, heappop, heappush, heappushpop INF = float('inf') INF float('inf') float 'inf' NIL = - 1 NIL - 1 A, P = map(int, input().split()) A map(int, input().split()) map int input().split() ().split () input split P print((A * 3 + P) // 2) print (A * 3 + P) // 2 A * 3 + P A * 3 A 3 P 2 INF = float('inf') float('inf') INF NIL = - 1 - 1 NIL P = map(int, input().split()) map(int, input().split()) P A, P = map(int, input().split()) map(int, input().split()) A input = sys.stdin.readline sys.stdin.readline input
import sys
sys.setrecursionlimit(10 ** 9)
input = sys.stdin.readline
from itertools import permutations,  combinations, accumulate
from functools import *
from collections import deque, defaultdict, Counter
from heapq import heapify, heappop, heappush, heappushpop

INF = float('inf')
NIL = - 1


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