Hello!

I have just started learning logic and have to idea how to solve this, can anyone help with ideas please?

Prove that a formula that contains only variables and equivalence and negation as operations is identically true if and only if the number each variable and operation of negation appears in the formula is even.

Thank you in advance!