def abbreviate(word):
    finString = ''
    prevChar = ''
    for char in word:
        if (char.isupper() & ~(prevChar.isupper())) | ((prevChar == ' ') | (prevChar == '-')):
            finString += char
        prevChar = char
    return finString.upper()
7019d3a8afbe600dc0ce69b1cd0cafc6e92b577c
<mask token>

def abbreviate(word):
    finString = ''
    prevChar = ''
    for char in word:
        if char.isupper() & ~prevChar.isupper() | ((prevChar == ' ') | (
            prevChar == '-')):
            finString += char
        prevChar = char
    return finString.upper()

def abbreviate(word):
    finString = ''
    prevChar = ''
    for char in word:
        if (char.isupper() & ~(prevChar.isupper())) | ((prevChar == ' ') | (prevChar == '-')):
            finString += char
        prevChar = char
    return finString.upper()