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