Problem: Brian the Rabbit adores chess. Not long ago he argued with Stewie the Rabbit that a knight is better than a king. To prove his point he tries to show that the knight is very fast but Stewie doesn't accept statements without evidence. He constructed an infinite chessboard for Brian, where he deleted several squares to add some more interest to the game. Brian only needs to count how many different board squares a knight standing on a square with coordinates of (0, 0) can reach in no more than k moves. Naturally, it is forbidden to move to the deleted squares.

Brian doesn't very much like exact sciences himself and is not acquainted with programming, that's why he will hardly be able to get ahead of Stewie who has already started solving the problem. Help Brian to solve the problem faster than Stewie.

Input

The first line contains two integers k and n (0 ≤ k ≤ 1018, 0 ≤ n ≤ 440) which are correspondingly the maximal number of moves a knight can make and the number of deleted cells. Then follow n lines, each giving the coordinates of a deleted square in the form (xi, yi) (|xi| ≤ 10, |yi| ≤ 10). All the numbers are integer, the deleted squares are different and it is guaranteed that the square (0, 0) is not deleted.

Please, do not use %lld specificator to read or write 64-bit integers in C++. It is preffered to use cin (also you may use %I64d).

Output

You must print the answer on a single line. As it can be rather long, you should print it modulo 1000000007.

Examples

Input

1 0


Output

9


Input

2 7
-1 2
1 2
2 1
2 -1
1 -2
-1 -2
-2 -1


Output

9

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
const double pi = acos(-1.0), eps = 1e-8;
const int inf = ~0U >> 2;
int mod = 1e9 + 7;
int Pow(int x, long long t) {
  int r = 1;
  for (; t; t >>= 1, x = (long long)x * x % mod)
    if (t & 1) r = (long long)r * x % mod;
  return r;
}
const int N = 200, M = 200, limit = 50, P = 1e9 + 7;
const int dx[] = {2, 2, 1, 1, -1, -1, -2, -2};
const int dy[] = {1, -1, 2, -2, 2, -2, 1, -1};
int dis[N * 2][M * 2], cnt[N];
long long K, n;
int main() {
  cin >> K >> n;
  int x, y;
  for (int i = 0; i < n; ++i) cin >> x >> y, dis[N + x][M + y] = inf;
  dis[N][M] = 1;
  vector<pair<int, int> > V;
  V.push_back(make_pair(N, M));
  for (int i = 0; i < (int)(V).size(); ++i) {
    pair<int, int> c = V[i];
    int x = c.first, y = c.second;
    if (dis[x][y] == K + 1 || dis[x][y] == limit + 1) break;
    for (int d = 0; d < 8; ++d) {
      int nx = x + dx[d], ny = y + dy[d];
      if (!dis[nx][ny]) {
        dis[nx][ny] = dis[x][y] + 1;
        cnt[dis[nx][ny]]++;
        V.push_back(make_pair(nx, ny));
      }
    }
  }
  if (K <= limit || cnt[limit + 1] == 0)
    cout << (int)(V).size() << endl;
  else {
    long long d = K - limit, a = d, b = d + 1;
    if (a & 1)
      b >>= 1;
    else
      a >>= 1;
    cout << ((a % P) * (b % P) % P * 28 % P + d % P * cnt[limit + 1] % P +
             (int)(V).size()) %
                P
         << endl;
  }
  return 0;
}