#include <bits/stdc++.h>
using namespace std;
void init() {
  long long n;
  cin >> n;
  vector<long long> a(n);
  for (long long i = 0; i < n; i++) cin >> a[i];
  bool ok = false;
  for (long long mask = 0; mask < (1 << n); mask++) {
    long long sum = 0;
    for (long long i = 0; i < n; i++) {
      if (mask & (1 << i))
        sum += a[i];
      else
        sum -= a[i];
    }
    if (sum % 360 == 0) {
      ok = true;
      break;
    }
  }
  if (ok)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
int32_t main() {
  std::ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  init();
  return 0;
}
