Product of two subgroups

Let G be a group, and H,K be subgroups of G. Let HK={hkhH,kK} denote the set product. Prove that HK is a group if and only if HK=KH.