naive solution to p0000