Codeforces Round #151 Problem A Buggy Sorting