#include <bits/stdc++.h>
using namespace std;
const int MAXN = 100005;
const long long MOD = 998244353;
const long long LINF = 0x3f3f3f3f3f3f3f3f;
const int INF = 1e9 + 7;
const double PI = acos(-1.0);
const double EPS = 1e-8;
int _;
using namespace std;
vector<int> togo;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  int N;
  while (cin >> N) {
    togo.clear();
    int tmp;
    for (int i = 1; i <= N; ++i) {
      cin >> tmp;
      togo.push_back(tmp);
    }
    int flag = 0;
    for (int i = 0; i < (1 << N); ++i) {
      int deg = 0;
      for (int j = 0; j < N; ++j) {
        if ((i >> j) & 1) {
          deg += togo[j];
        } else
          deg -= togo[j];
      }
      if (abs(deg) % 360 == 0) {
        flag = 1;
        break;
      }
    }
    if (flag)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  }
  return 0;
}
