Determination of the pion nucleon coupling constant and s-wave scattering lengths