https://official.contest.yandex.ru/contest/...
Primary LanguageC++
https://official.contest.yandex.ru/contest/6475/problems/A/