#include <bits/stdc++.h>
using namespace std;
int n;
int a[20];
bool ans;
void check(int p, int c) {
  if (p == n) {
    if (c % 360 == 0) {
      ans = true;
    }
    return;
  }
  p++;
  check(p, c - a[p]);
  check(p, c + a[p]);
}
int main() {
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
  }
  check(0, 0);
  if (ans)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
