m,*a=`dd`.split.map &:to_i;x=m+1-s=a.reduce(:+);y=a.size;M=10**9+7; r=1 y.times{|i|r=r*(x-i)/(i+1)} puts s<1?1:x-y<0?:NA:r%M