#include <bits/stdc++.h>
using namespace std;
mt19937 rnd(chrono::high_resolution_clock::now().time_since_epoch().count());
template <class t1, class t2>
bool cmax(t1 &a, const t2 &b) {
  if (a < b) {
    a = b;
    return true;
  }
  return false;
}
template <class t1, class t2>
bool cmin(t1 &a, const t2 &b) {
  if (a > b) {
    a = b;
    return true;
  }
  return false;
}
void UseFiles(const string &s) {
  freopen((s + ".in").c_str(), "r", stdin);
  freopen((s + ".out").c_str(), "w", stdout);
}
void run();
signed main() {
  iostream::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  run();
}
void run() {
  long long n;
  cin >> n;
  vector<long long> a(n);
  for (auto &x : a) cin >> x;
  vector<vector<bool>> dp(n + 1, vector<bool>(360, false));
  dp[0][0] = true;
  for (long long i = 0; i < n; ++i) {
    for (long long j = 0; j < 360; ++j) {
      long long d = (j - a[i] + 360) % 360;
      if (dp[i][d]) dp[i + 1][j] = true;
      d = (j + a[i]) % 360;
      if (dp[i][d]) dp[i + 1][j] = true;
    }
  }
  if (dp[n][0]) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
}
