((a)) ** .—** Whoever, in the special maritime and territorial jurisdiction of the United States or in a Federal prison, or in any prison, institution, or facility in which persons are held in custody by direction of or pursuant to a contract or agreement with the head of any Federal department or agency, knowingly engages in or causes sexual contact with or by another person, if so to do would violate—
((1)) subsection (a) or (b) of had the sexual contact been a sexual act, shall be fined under this title, imprisoned not more than ten years, or both;
((2)) had the sexual contact been a sexual act, shall be fined under this title, imprisoned not more than three years, or both;
((3)) subsection (a) of had the sexual contact been a sexual act, shall be fined under this title, imprisoned not more than two years, or both;
((4)) subsection (b) of had the sexual contact been a sexual act, shall be fined under this title, imprisoned not more than two years, or both;
((5)) subsection (c) of had the sexual contact been a sexual act, shall be fined under this title and imprisoned for any term of years or for life; or
((6)) subsection (c) of had the sexual contact been a sexual act, shall be fined under this title, imprisoned not more than two years, or both;
((b)) ** .—** Whoever, in the special maritime and territorial jurisdiction of the United States or in a Federal prison, or in any prison, institution, or facility in which persons are held in custody by direction of or pursuant to a contract or agreement with the head of any Federal department or agency, knowingly engages in sexual contact with another person without that other person’s permission shall be fined under this title, imprisoned not more than two years, or both.
((c)) ** .—** If the sexual contact that violates this section (other than subsection (a)(5)) is with an individual who has not attained the age of 12 years, the maximum term of imprisonment that may be imposed for the offense shall be twice that otherwise provided in this section.