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