#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  int x;
  cin >> n;
  int A[n];
  for (int i = 0; i < n; i++) {
    cin >> x;
    A[i] = x;
  }
  int veces = 0;
  for (int mask = 0; mask < (1 << n); mask++) {
    int cont = 0;
    for (int bit = 0; bit < n; bit++) {
      if ((mask >> bit) & 1) {
        cont = cont + A[bit];
      } else {
        cont = cont - A[bit];
      }
    }
    if (cont == 0 || cont % 360 == 0) {
      veces++;
    }
  }
  if (veces > 0) {
    cout << "YES";
  } else {
    cout << "NO";
  }
  return 0;
}
