On exact solutions of the Cauchy problem for some parabolic and hyperbolic equations