solutions of problem Set of codeforcess. implemtation with Python