(0) Obligation:

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

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

Q is empty.