#include <bits/stdc++.h>
using namespace std;
const int NMAX = 16;
int v[NMAX];
int main() {
  int n;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> v[i];
  }
  for (int i = 0; i < (1 << n); i++) {
    int aux = 0;
    for (int j = 0; j < n; j++) {
      if ((i & (1 << j)) != 0)
        aux += v[j + 1];
      else
        aux -= v[j + 1];
    }
    if (aux % 360 == 0) {
      cout << "YES";
      return 0;
    }
  }
  cout << "NO";
  return 0;
}
