#include #include #include #include #include #include #include #include #include #include #include using namespace std; int main() { int n; long long m, s; cin >> n >> m >> s; long long sum = 0; for (int i = 0; i < n; i++) { long long a; cin >> a; sum += a; } if (abs(s - sum) % m == 0) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }