public static void Main()
decimal totalInheritance = 1587654M;
decimal administratorPercent = 0.0025M;
decimal onePortion = (totalInheritance - totalInheritance*administratorPercent)/710;
int onePortionRounded = (int)onePortion;
System.Console.WriteLine("One Portion " + onePortionRounded);
int relativesInherit = relatives*onePortionRounded;
System.Console.WriteLine("Relatives Get " + relativesInherit);
int childrenInherit = children*100*onePortionRounded;
System.Console.WriteLine("Children Get " + childrenInherit);
int parentsInherit = parents*200*onePortionRounded;
System.Console.WriteLine("Parents Get " + parentsInherit);
decimal adminInherit = totalInheritance - relativesInherit - childrenInherit - parentsInherit;
System.Console.WriteLine("Admin Get " + adminInherit);