Could do `set(v[0] for v in d.values())`.