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;
long long nn, ans, dd, delta, p;
int n, m, i, j, k, x, y, l, r;
int dx[16], dy[16];
int d[1006];
int qx[1000006], qy[1000006], t[1000006];
bool b[1006][1006];
long long Orz_Ly(long long a, long long b) {
  long long ans = 1;
  while (b > 0) {
    if (b & 1) ans = (ans * a) % p;
    a = a * a % p;
    b = b >> 1;
  }
  return ans;
}
int main() {
  p = 1000000007;
  dx[1] = 1;
  dy[1] = 2;
  dx[2] = -1;
  dy[2] = 2;
  dx[3] = 1;
  dy[3] = -2;
  dx[4] = -1;
  dy[4] = -2;
  dx[5] = 2;
  dy[5] = 1;
  dx[6] = -2;
  dy[6] = 1;
  dx[7] = 2;
  dy[7] = -1;
  dx[8] = -2;
  dy[8] = -1;
  scanf("%I64d%d", &nn, &m);
  if (nn == 0) {
    printf("1");
    return 0;
  }
  n = 100;
  if (nn < n) n = (int)nn;
  while (m > 0) {
    m--;
    scanf("%d%d", &x, &y);
    b[500 + x][500 + y] = true;
  }
  r = 1;
  qx[1] = 500;
  qy[1] = 500;
  b[500][500] = true;
  while (l < r) {
    l++;
    if (t[l] == n) break;
    x = qx[l];
    y = qy[l];
    for (i = 1; i <= 8; i++)
      if (!b[x + dx[i]][y + dy[i]]) {
        r++;
        qx[r] = x + dx[i];
        qy[r] = y + dy[i];
        t[r] = t[l] + 1;
        b[x + dx[i]][y + dy[i]] = true;
      }
  }
  for (i = 1; i <= r; i++) d[t[i]]++;
  ans = r;
  dd = d[n];
  delta = d[n] - d[n - 1];
  nn = nn - n;
  nn = nn % p;
  ans = (ans + dd * nn % p +
         delta * nn % p * (nn + 1) % p * Orz_Ly(2, p - 2) % p) %
        p;
  printf("%I64d\n", ans);
  return 0;
}