#import int x,a,q,f=-2e9,i;main(){for(std::cin>>x>>x;std::cin>>a;f=a)for(i=30,a-=x<0?:i;i--;)q+=++a&&1<=x/a&f