#include <bits/stdc++.h>
using namespace std;
int n, i, res, j, k, sum, l;
string s;
bool f;
int main() {
  cin >> n;
  int a[n];
  for (i = 0; i < n; i++) {
    cin >> a[i];
    res += a[i];
  }
  for (i = 1; i <= pow(2, n) - 1; i++) {
    j = 0;
    l = i;
    while (l) {
      s[j] = (l % 2) + '0';
      j++;
      l /= 2;
    }
    sum = 0;
    for (k = 0; k < n; k++) {
      if (s[k] == '1') {
        sum += (-1 * a[k]);
      } else {
        sum += a[k];
      }
    }
    if (!sum || sum % 360 == 0) f = 1;
  }
  if (f)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
