We report the first experimental observation of the two-node thickness dependence of the critical current in Josephson junctions with a ferromagnetic interlayer. Vanishings of the critical current correspond to transitions into pi-state and back into conventional 0-state. The experimental data allow to extract the superconducting order parameter oscillation period and the pair decay length in the ferromagnet. We develope a theoretical approach based on Usadel equations, which takes into account the spin-flip scattering. Results of numerical calculations are in good agreement with the experimental data.