Explanation for first three problems of round 186
http://www.bytehood.com/codeforces-round-186-the-one-that-got-rated/439/