#include <bits/stdc++.h>
using namespace std;
int n, a[200005], sum = 0;
void rec(int v, int sum) {
  if (v == n - 1) {
    if (sum % 360 == 0) {
      cout << "YES";
      exit(0);
    } else
      return;
  }
  rec(v + 1, sum + a[v + 1]);
  rec(v + 1, sum - a[v + 1]);
}
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    sum += a[i];
  }
  rec(0, a[0]);
  rec(0, 0 - a[0]);
  cout << "NO";
  return 0;
}
