#include<bits/stdc++.h>
#define LL long long
#define DB double
#define MOD 1000000007
#define ls(x) (x << 1)
#define rs(x) (x << 1 | 1)
#define lowbit(x) ((-x) & x)
#define MP make_pair
#define VI vector<int>
#define VL vector<LL>
#define VII VI::iterator
#define VLI VL::iterator
#define all(x) x.begin(), x.end()
#define EB emplace_back
#define PII pair<int, int>
#define SI set<int>
#define SII SI::iterator
#define fi first
#define se second
using namespace std;
template<typename T> void chkmn(T &a, const T &b) { (a > b) && (a = b); }
template<typename T> void chkmx(T &a, const T &b) { (a < b) && (a = b); }
void Inc(int &a, const int &b) { ((a += b) >= MOD) && (a -= MOD); }
void Dec(int &a, const int &b) { ((a -= b) < 0) && (a += MOD); }
void Mul(int &a, const int &b) { a = 1LL * a * b % MOD; }
void Sqr(int &a) { a = 1LL * a * a % MOD; }
int inc(const int &a, const int &b) { return (a + b >= MOD) ? a + b - MOD : a + b; }
int dec(const int &a, const int &b) { return (a - b < 0) ? a - b + MOD : a - b; }
int mul(const int &a, const int &b) { return 1LL * a * b % MOD; }
int sqr(const int &a) { return 1LL * a * a % MOD; }
int qwqmi(int x, int k = MOD - 2)
{
int res = 1;
while(k)
{
if(k & 1) Mul(res, x);
k >>= 1, Sqr(x);
}
return res;
}
const int N = 605;
int n, m;
int vis[N];
int c[N][N];
int f[N][N], g[N], ans;
int main()
{
scanf("%d %d", &n, &m); n <<= 1;
for(int i = 1; i <= m; ++i)
{
int x, y;
scanf("%d %d", &x, &y);
vis[x] = y, vis[y] = x;
}
for(int l = 1; l <= n; ++l)
for(int r = l; r <= n; ++r)
for(int i = l; i <= r; ++i)
c[l][r] += (vis[i] == 0);
g[0] = 1;
for(int i = 2; i <= n; i += 2)
g[i] = mul(g[i - 2], i - 1);
for(int len = 2; len <= n; ++len)
for(int l = 1; l + len - 1 <= n; ++l)
{
int r = l + len - 1;
if(c[l][r] & 1) continue;
bool flag = 1;
for(int i = l; i <= r && flag; ++i)
if(vis[i] && (vis[i] < l || vis[i] > r))
flag = 0;
if(!flag) continue;
int w = g[c[l][r]];
for(int i = l; i < r; ++i)
Dec(w, mul(f[l][i], g[c[i + 1][r]]));
f[l][r] = w;
Inc(ans, mul(f[l][r], g[c[1][l - 1] + c[r + 1][n]]));
}
printf("%d\n", ans);
return 0;
}