#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  long long int t, n, m, cap, y, xo, x, sum, i, k, d, m1, u, v, j, a, p, q, b,
      ans;
  ;
  bool flag;
  string s;
  t = 1;
  while (t--) {
    cin >> n;
    vector<long long int> v(n);
    for (auto &i : v) cin >> i;
    flag = false;
    for (i = 0; i < 1ll << n; i++) {
      x = 0;
      for (j = 0; j < n; j++)
        if (i & (1ll << j))
          x += v[j];
        else
          x -= v[j];
      cerr << "Debug\t"
           << "x"
           << "=" << x << " \n";
      ;
      if (x == 0 || x % 360 == 0) {
        flag = true;
        break;
      }
    }
    if (flag)
      cout << "YES"
           << " \n";
    else
      cout << "NO"
           << " \n";
  }
}
