Paying minimun Problrem