The best way to insert subscript or superscript chemical symbols in a fill-in answer?

Our students have to fill in chemical formules in a fill-in-the-blanc. f.e. NH4OH (with the 4 in subscript)

Discussions have been disabled for this post