(0) Obligation:

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

f(f(f(a, x), y), z) → f(f(x, z), f(y, z))
f(f(b, x), y) → x
f(c, y) → y

Q is empty.