H4.C and H4.D solution

C

D