結果 : elephant codeforces solution in python