import os print(sorted(os.sched_getaffinity(0)))