Setting
1- Give the prescribed shares (of inheritance) to those who are entitled to them, and whatever remains goes to the nearest male relative