(0) Obligation:

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

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

Q is empty.