Equivalence of the Markov chains and two-sided symbolic sequences