#include #define rep(i,n) for(int i = 0; i < n; i++) #define rrep(i,a,b) for(int i = a; i < b; i++) #define all(A) (A).begin(),(A).end() #define MOD 1000000007 using namespace std; using ll = long long; using P = pair; using Graph = vector>; int siz(string s){return (int)s.size();} int siz(vector &s){return (int)s.size();} const int INF = 1<<30; int main(void){ ll n,m,s; cin >> n >> m >> s; ll t = 0; rep(i,n){ int a; cin >> a; t += a; } cout << (t%m == s%m ? "Yes" : "No"); }