(0) Obligation:

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

f(X, g(X), Y) → f(Y, Y, Y)
g(b) → c
bc

Q is empty.