Analytical solutions of the nonlinear shallow water equations and their averaging on a plane beach.