python3 -c "import itertools;S=list(itertools.permutations(range(8),4));print(sum(1 for a in S for b in S if len(set(a)|set(b))<=6))"