http://codeforces.com/contest/435/problem/C