結果 : way too long words codeforces solution in python