  Consider the pair $(H, \omega)$ consisting of a Hamiltonian and a symplectic
structure on $\mathbb R^2$ such that $H$ has an $A_{k-1}$ singularity at the
origin with $k\geq 2$. We give a symplectic classification of such pairs up to
symplectic transformations (in the $C^\infty$-smooth and real-analytic
categories) in two cases: a) the transformations preserve the fibration and b)
the transformations preserve the Hamiltonian of the system. The classification
is obtained by bringing the pair $(H, \omega)$ to a symplectic normal form $$(H
= \xi^2 \pm x^k, \omega = d (f d \xi)), \quad f = \sum_{i=1}^{k-1} x^i
f_i(x^k),$$ modulo some relations which are explicitly given. For example, in
the case of the quartic oscillator $H = \xi^2 + x^{4}$, the germs of $f_{1}$
and $f_3$ and the Taylor series of $\pm f_{2}$ at the origin classify germs of
symplectic structures up to $H$-preserving $C^\infty$-diffeomorphisms. In the
case when $H = \xi^2 - x^{4}$, the Taylor series of $f_{1}, f_3$ and $\pm
f_{2}$ at the origin are the only symplectic invariants. We also show that the
group of $H$-preserving symplectomorphisms of an $A_{k-1}$ singularity with $k$
odd consists of symplectomorphisms that can be included into a
$C^\infty$-smooth (resp., real-analytic) $H$-preserving flow, whereas for $k$
even the same is true modulo the $\mathbb Z_2$-subgroup generated by the
involution $\rm{Inv}(x,\xi) = (-x,-\xi)$. The paper also briefly discusses the
conjecture that the symplectic invariants of $A_{k}$ singularities are
spectrally determined.
