EN
In this paper we describe the structure of surjective isometries of the spaces of all absolutely continuous, singular, or discrete probability distribution functions on R equipped with the Kolmogorov-Smirnov metric. We also study the structure of affine automorphisms of the space of all distribution functions.