#include <bits/stdc++.h>
using namespace std;
int f(int n, int s, vector<int>& a) {
  int res = 0;
  for (int i = 0; i < n; ++i) {
    if (s & 1)
      res += a[i];
    else
      res -= a[i];
    s >>= 1;
  }
  return res;
}
int main() {
  int n;
  cin >> n;
  vector<int> a;
  for (int i = 0; i < n; ++i) {
    int tmp;
    cin >> tmp;
    a.push_back(tmp);
  }
  bool ok = false;
  for (int i = 0; i < (1 << n); ++i) {
    if (f(n, i, a) % 360 == 0) {
      ok = true;
      break;
    }
  }
  cout << (ok ? "YES" : "NO") << endl;
  return 0;
}
