output_description: Print the maximum number of apple pies we can make with what we have.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      A P
attempt: a, p = map(int, inputy().split())
  a = 3 * p
  print((a + p) // 2)
  
problem_description: Statement
  
  We have A apples and P pieces of apple.
  
  We can cut an apple into three pieces of apple, and make one apple pie by
  simmering two pieces of apple in a pan.
  
  Find the maximum number of apple pies we can make with what we have now.
samples: [{"input": "1 3", "output": "3\n    \n\nWe can first make one apple pie by simmering two of the three pieces of apple.\nThen, we can make two more by simmering the remaining piece and three more\npieces obtained by cutting the whole apple.\n\n* * *"}, {"input": "0 1", "output": "0\n    \n\nWe cannot make an apple pie in this case, unfortunately.\n\n* * *"}, {"input": "32 21", "output": "58"}]