文件目录

#include <iostream>
using namespace std;
int main()
{
    int n, a[10050] = {}, k;
    cin >> n >> k;
    int sum = 0;
    for (int i = 1; i <= n; i++)
    {
        cin >> a[i];
        sum += a[i];
    }
    string ans = "NO";
    for (int i = 0; i <= n; i++)
    {
        int t = sum - a[i] * 2;
        if (t % k == 0)
        {
            ans = "YES";
            break;
        }
    }
    cout << ans;
    return 0;
}