https://www.jv.ru/goals/program/zhensky_cikl_bez_problem/step_11