CCMP-3 and codeforces 178