public class ApplePieNumber(int A, int P)
{
public int getApplePieNumber(int A, int P)
{
   int applePice=0;
   int result=0;
   applePice=3*A+P;
   result=Math.floor(applePice/2);
  
  return result;
   
}

}