#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  int num[1050] = {0};
  while (scanf("%d%d", &n, &m) != EOF) {
    for (int i = 0; i < n; i++) {
      int temp;
      scanf("%d", &temp);
      temp = temp % m;
      if (temp == 0) {
        printf("YES\n");
        return 0;
      }
      if (num[m - temp] > 0) {
        printf("YES\n");
        return 0;
      }
      int tmp[1050] = {0};
      for (int j = 1; j <= m; j++) {
        if (num[j] > 0) {
          tmp[j]++;
          tmp[(j + temp) % m]++;
        }
      }
      for (int j = 1; j <= m; j++) {
        num[j] = tmp[j];
      }
      num[temp]++;
    }
    printf("NO\n");
  }
  return 0;
}
