http://codeforces.com/problemset/problem/158/C