Now, problem 084 is implemented via simulation process. This leads to the situation that this simulation gives wrong answer periodically. So, i must implement solution of problem 084 with help of Markov chains.
PS. About Markov chains see here: https://en.wikipedia.org/wiki/Markov_chain