#include<cstdio>
#define N 606
#define p 1000000007
#define ll long long
int a[N],f[N][N],g[N],h[N],i,j,k,m,n;
int main()
{
    scanf("%d%d",&n,&m),n<<=1;
    for(*g=i=1;i<=n;i++)h[a[i]=i]=1;
    for(i=1;i<=m;i++)scanf("%d%d",&j,&k),h[a[k]=j]=h[a[j]=k]=0;
    for(i=2;i<=n;i+=2)g[i]=(ll)(i-1)*g[i-2]%p;
    for(i=1;i<=n;i++)h[i]+=h[i-1];
    for(i=n;i;i--)for(j=i;j<=n;j++)for(f[k=i][j]=g[h[j]-h[i-1]];k<=j&&f[i][j];k++)if(a[k]<i||j<a[k])f[i][j]=0;
    for(i=n;i;i--)for(j=i;j<=n;j++)if(f[i][j])for(k=i;k<j;k++)f[i][j]=(f[i][j]+(ll)(p-f[i][k])*g[h[j]-h[k]])%p;
    for(i=n,k=0;i;i--)for(j=i;j<=n;j++)k=(k+(ll)f[i][j]*g[h[n]-h[j]+h[i-1]])%p;
    return 0*printf("%d\n",k);
}