import random

Apple = random.randint(0,101)
Piece = random.randint(0,101)
Pie = 0

def BreakApple():
    global Apple
    while Apple > 0:
        Apple -= 1
        global Piece
        Piece += 3

def MakePie():
    global Piece
    while Piece > 0:
        Piece -= 2
        global Pie
        Pie += 1

BreakApple()
MakePie()
print(Pie)