Find all functions $f(x)$ satisfying $f(x)+f^{\prime}(\pi-x)=1$ for all $x \in \mathbb{R}$.
This is a question from Moscow. I have tried $f(x)=x^m$ and it clearly does not work. Clearly $f(x)=1$ works. But I have no idea how to obtain remaining functions which satisfy the equation.
Clearly $f^{\prime}(0)=1-f(\pi)$.