Ergodic problems of classical mechanics