A group isomorphic to an internal direct product

Suppose G is a group that contains normal subgroups H,KG with HK={e} and HK=G. Prove that GH×K.