n=gets.to_i a={-1=>0,0=>2};k=0;e=-1 0.upto(n){|i|m=a[k+e=-e]=0 0.upto(i){|j|m+=a[k];a[k]=m%1000000007;k+=e}} p n<3?0:[a[-n/2],a[n/2]][n%2]