(0) Obligation:

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

f(s(x)) → s(f(f(p(s(x)))))
f(0) → 0
p(s(x)) → x

Q is empty.