URAL 4758 Walk Through Squares