#include <bits/stdc++.h>
using namespace std;

main() {
    ios_base::sync_with_stdio(false);
    cin.tie(0); cout.tie(0);
    freopen("TEST.inp", "r", stdin);
    freopen("TEST.out", "w", stdout);
    int n, m;
    cin >> n >> m;

    if (n > m) {
        cout << "YES" << '\n';
        return 0;
    }

    vector <int> a(n + 1, 0);
    for (int i = 1; i <= n; i++) cin >> a[i];

    vector <bool> dp(m, false);

    for (int i = 1; i <= n; i++) {
        int val = a[i];
        vector <bool> ndp = dp;
        ndp[val % m] = true;
        for (int j = 0; j < m; j++) {
            if (dp[j]) ndp[(j + val) % m] = true;
        }
        if (ndp[0]) {
            cout << "YES" << '\n';
            return 0;
        }
        dp.swap(ndp);
    }

    cout << "NO" << '\n';

    return 0;
}
