In 1922 Ritt described polynomial solutions of the functional equation P(f) = Q(g). In this paper we describe solutions of the equation above in the case when P, Q are polynomials while f, g are ...