(0) Obligation:

Q restricted rewrite system:
The TRS R consists of the following rules:

g(X) → h(X)
cd
h(d) → g(c)

Q is empty.