Статья 5698 Vahram DUMANYAN Armen ANDREASYAN Olympiads in Informatics 10 249-254 2016 http://ioinformatics.org/oi_index.shtml