Problem 2 Russian Version