Solution of the Fokker-Planck equation for the shock wave problem