Game of Thrones - I

  • + 1 comment

    Python 3:

    from collections import Counter
    
    if len([1 for x in Counter(input()).values() if x & 1]) <= 1:
        print('YES')
    else:
        print('NO')