How is a person judged if they are both righteous and wicked?