codeforces 499