I use the 7 of 7 rule. Starting at the element labelled 7, so nitrogen, make a 7 using N as you upper left point of the 7. Include nitrogen, oxygen, fluorine, chlorine, bromine, iodine. And then hydrogen is just kind of there but it’s still diatomic.