(0) Obligation:

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

f(g(x), s(0)) → f(g(x), g(x))
g(s(x)) → s(g(x))
g(0) → 0

Q is empty.