Seunghyun is a mathematician, and he likes good jokes.
For a set U=0,1,⋯,2k−1, a nonempty subset A⊂U is good if it satisfies the following rules.
- For any x,y∈S, their bitwise-and x&y should be in S.
- For any x,y∈S, their bitwise-or x∣y should be in S.
You are given n distinct integers in \[0,2k−1] range. Find the number of good sets which contains all n integers.