# From "Teaching with Python" by John Zelle
def happy():
    print("Happy Birthday to you!")

def sing(P):
    happy()
    happy()
    print("Happy Birthday dear " + P + "!")
    happy()

# main
sing("Fred")
