Drilling of deep wells