Question 19A5 (JAP), IMO6. Find all the functions $f:\mathbb R\to\mathbb R$ that satisfy $$f(x-f(y))=f(f(y))+xf(y)+f(x)-1$$ for all $x,y\in\mathbb R$.