The solid crust constituting the outer layers of a hot neutron star is wrapped by an mm-to-cm thin atmosphere. Even if the atmosphere is so thin, it substantially affects the blackbody spectrum emitted by the surface, resulting in an overall hardening of the emitted spectrum. The composition of the atmosphere has so far remained elusive. Several narrow absorption features have been detected and interpreted as arising from proton (or electron) resonant cyclotron absorption in the neutron star magnetic field. Apart from these, for a Hydrogen atmosphere no spectral features are expected, whereas when it is polluted with metals, absorption features start appearing in soft X-ray spectra. Absorption edges and features have been possibly observed during thermonuclear explosions onto the neutron star surface. Isolated neutron stars represent a breeding ground where to look for absorption features, thanks to their simple X-ray spectra. Here we report on the detection of redshifted Nitrogen and Oxygen absorption features from the closest and brightest isolated neutron star. The lines are ~50 eV wide and their intensity is incompatible from originating in the interstellar path to the neutron star. Lines are redshifted by a common gravitational redshift of z_g=0.216±0.004.