General solution of the modified Korteweg-de-Vries equation in the lattice hydrodynamic model