PUMaC 2014 Number Theory B Problem 7

How many permutations p(n) of \{1,2,3 \ldots 35\} satisfy a \mid b implies p(a) \mid p(b)?