Codeforces Round #192 (Div. 2) A
http://codeforces.com/contest/330/problem/A