(0) Obligation:

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

f(0, 1, x) → f(h(x), h(x), x)
h(0) → 0
h(g(x, y)) → y

Q is empty.