Dear friends, I have solved this task, but still get an error while checking. Look at my code please.