print "Shape 1: Square"
print "Shape 2: Rectangle"
print "Shape 3: Triangle"
shape = input("Type the number of the shape to calculate: ")

if shape == 1:
    side = input("What is the lenght of any side? ")
    print side**2

elif shape == 2:
    length = input("What is the length? ")
    width = input("What is the width? ")
    print length * width

elif shape == 3:
    height = input("What is the height? ")
    width = input("What is the width? ")
    print 0.5 * height * width



