Update Codeforces Problem 1B