for y in range(0,1):
    print ("%4d %4d %5d" % (y+1,y+2,y+3))
    print ("%3s %4s %5s" % ("X","X","X"))
    print("-------------")
    for z in range(1,6):
        print ("%3d %4d %5d" % (z, z*z, z*z*z))
        
