Jay is given a permutation {p1,p2,…,p8} of {1,2,…,8}. He may take two dividers and split the permutation into three non-empty sets, and he concatenates each set into a single integer. In other words, if Jay chooses a,b with 1≤a<b<8, he will get the three integers p1p2…pa, pa+1pa+2…pb, and pb+1pb+2…p8. Jay then sums the three integers into a sum N=p1p2…pa+pa+1pa+2…pb+pb+1pb+2…p8. Find the smallest positive integer M such that no matter what permutation Jay is given, he may choose two dividers such that N≤M.Proposed by James Lin