def priority_sort(lst, s):
    lst.sort()
    return sorted(lst, key=lambda x: x not in s)

2a64ac9064db3ca213fda6b35ef7b37ffbcb6e93
<mask token>

def priority_sort(lst, s):
    lst.sort()
    return sorted(lst, key=lambda x: x not in s)
