Game of Thrones - I

  • + 1 comment

    similarly,

    s = input().strip()
    if len([c for c in set(s) if s.count(c) % 2 != 0]) < 2:
        print('YES')
    else:
        print('NO')