#include <bits/stdc++.h>
using namespace std;
int check(vector<int> &v, int total, int i) {
  if (total % 360 == 0 && i == v.size()) return 1;
  if (i >= v.size()) return 0;
  if (check(v, total + v[i], i + 1) || check(v, total - v[i], i + 1)) return 1;
  return 0;
}
int main() {
  int n;
  cin >> n;
  vector<int> v(n);
  for (int i = 0; i < n; i++) cin >> v[i];
  sort(v.begin(), v.end());
  if (check(v, v[0], 1))
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
