import java.util.*;
class pie
{
  public void main(String args[])
  {
    Scanner Sc=new Scanner(System.in);
    int t=Sc.nextInt();
    int n=Sc.nextInt();
    int a=t*3+n;
    System.out.println(a/2);
  }
}