finished the first problem in codeforces