#include <bits/stdc++.h>
using namespace std;
int rot(vector<int>& angles, int mask) {
  int n = angles.size();
  int res_angle = 0;
  for (int i = 0; i < n; ++i) {
    if (mask & (1 << i)) {
      res_angle += angles[i];
    } else {
      res_angle -= angles[i];
    }
  }
  return res_angle;
}
bool is_zero(int angle) { return (angle % 360) == 0; }
int main() {
  int n;
  cin >> n;
  vector<int> angles(n);
  for (int i = 0; i < n; ++i) {
    cin >> angles[i];
  }
  for (int mask = 0; mask < (1 << n); ++mask) {
    if (is_zero(rot(angles, mask))) {
      cout << "YES\n";
      return 0;
    }
  }
  cout << "NO\n";
}
