(0) Obligation:

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

f(g(x), h(x), y, x) → f(y, y, y, x)
f(x, y, z, 0) → 2
g(0) → 2
h(0) → 2

Q is empty.