The Ukrainian president also said his country "must do everything" to ensure the war ends next year.