If I had the following logical expression, how would I simplify it? I need to be sure that negations appear only applied to predicates (that is, so that no negation is outside a quantifier or an expression involving logical connectives). In the expression below, ~ means "not," means "or," and means "and."

I'm fairly certain that the not can be distributed inwards to achieve:

... but I am not sure how to proceed from there.

Thanks in advance!