(0) Obligation:

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

f(f(f(a, f(a, a)), a), x) → f(x, f(x, a))

Q is empty.