Effective integrable dynamics for a certain nonlinear wave equation