#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int n;
  cin >> n;
  vector<int> a(n);
  for (auto &in : a) cin >> in;
  for (int i = 0; i < (1 << n); ++i) {
    int res = 0;
    for (int j = 0; j < n; ++j) {
      if ((i & (1 << j)) > 0)
        res += a[j];
      else
        res -= a[j];
    }
    if (res % 360 == 0) {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
  return 0;
}
