#include <bits/stdc++.h>
using namespace std;
signed main() {
  {
    long long n;
    cin >> n;
    long long a[n], sa = 0;
    for (long long i = 0; i < n; i++) {
      cin >> a[i];
      sa += a[i];
    }
    vector<long long> v;
    for (long long mask = 0; mask < pow(2, n); mask++) {
      long long sv = 0;
      v.clear();
      for (long long i = 0; i < n; i++) {
        if (mask & (1 << i)) {
          v.push_back(a[n - i - 1]);
        }
      }
      for (long long i = 0; i < v.size(); i++) sv += v[i];
      if (abs(abs(sa - sv) - sv) % 360 == 0) {
        return cout << "YES", 0;
      }
    }
    cout << "NO";
  }
  return 0;
}
