codeforces round 222, wrong solution to A
codeforces round 222, correct solution to A