http://codeforces.com/problemset/problem/454/A