#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
#define MAX(X, Y) ((X > Y)? X : Y)
#define MIN(X, Y) ((X < Y)? X : Y)
//　min
int main(void){
  int n, m;
  int a[100000];
  int MOD = 1000000007;
  int sum = 0
  
  scanf("%d%d", &n, &m);

  for(int i = 1; i <= m; i++){
    scanf("%d", &a[i])
  }

  
  
  printf("%d\n", sum % MOD);

  return 0;
}