Spectrum of small oscillations of an ideal fluid and Lyapunov exponents