http://codeforces.com/contest/389/problem/A
http://codeforces.com/contest/389/problem/B
http://codeforces.com/contest/389/problem/C