URAL 1017 Staircases