(0) Obligation:

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

f(X) → g(h(f(X)))

Q is empty.