Determining the Shape of the Stairs