A positive integer is called heptaphobic if it is not divisible by seven and no number divisible by seven can be produced by swapping two of its digits. Note that leading zeros are not allowed before or after the swap.
For example, and are heptaphobic, but and are not because and are divisible by seven.
Let count heptaphobic numbers smaller than . You are given and .