(0) Obligation:

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

f(f(x)) → f(x)
g(0) → g(f(0))

Q is empty.