s = """
Nexus 1
Probe 1
Zealot 2
Sentry 2
Stalker 2
HighTemplar 2
DarkTemplar 2
Immortal 4
Colossus 6
Archon 4
Observer 1
WarpPrism 2
Phoenix 2
MothershipCore 2
VoidRay 4
Oracle 3
Tempest 4
Carrier 6
Mothership 8
""".strip()
d = dict(line.split() for line in s.splitlines())
d = {k: int(v) for k,v in d.items()}
for key in d:
l = [key]
result = sum((('vexuobcl'+2*'clsuie'+4*'Ratahoiesuhihi').count(q[-3:-1])*(1-12*(q[0]=="N"))or 2)for q in l)
assert result == d[key] or (key == "Nexus" and result == -11)
print(key, d[key], result)
CnMgPSAiIiIKTmV4dXMgICAgICAgICAgIDEKUHJvYmUgICAgICAgICAgIDEKWmVhbG90ICAgICAgICAgIDIKU2VudHJ5ICAgICAgICAgIDIKU3RhbGtlciAgICAgICAgIDIKSGlnaFRlbXBsYXIgICAgIDIKRGFya1RlbXBsYXIgICAgIDIKSW1tb3J0YWwgICAgICAgIDQKQ29sb3NzdXMgICAgICAgIDYKQXJjaG9uICAgICAgICAgIDQKT2JzZXJ2ZXIgICAgICAgIDEKV2FycFByaXNtICAgICAgIDIKUGhvZW5peCAgICAgICAgIDIKTW90aGVyc2hpcENvcmUgIDIKVm9pZFJheSAgICAgICAgIDQKT3JhY2xlICAgICAgICAgIDMKVGVtcGVzdCAgICAgICAgIDQKQ2FycmllciAgICAgICAgIDYKTW90aGVyc2hpcCAgICAgIDgKIiIiLnN0cmlwKCkKCmQgPSBkaWN0KGxpbmUuc3BsaXQoKSBmb3IgbGluZSBpbiBzLnNwbGl0bGluZXMoKSkKZCA9IHtrOiBpbnQodikgZm9yIGssdiBpbiBkLml0ZW1zKCl9Cgpmb3Iga2V5IGluIGQ6CiAgICBsID0gW2tleV0KICAgIHJlc3VsdCA9IHN1bSgoKCd2ZXh1b2JjbCcrMionY2xzdWllJys0KidSYXRhaG9pZXN1aGloaScpLmNvdW50KHFbLTM6LTFdKSooMS0xMioocVswXT09Ik4iKSlvciAyKWZvciBxIGluIGwpCiAgICBhc3NlcnQgcmVzdWx0ID09IGRba2V5XSBvciAoa2V5ID09ICJOZXh1cyIgYW5kIHJlc3VsdCA9PSAtMTEpCiAgICBwcmludChrZXksIGRba2V5XSwgcmVzdWx0KQoK