https://ko.ru/articles/srednee-arifmeticheskoe-117960/