codeforces goodbye 2014 problems a-c