Codeforces Problem B