(0) Obligation:

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

f(c(X, s(Y))) → f(c(s(X), Y))
g(c(s(X), Y)) → f(c(X, s(Y)))

Q is empty.