#include <bits/stdc++.h>
using namespace std;
void pre() {}
void solve() {
  int n;
  cin >> n;
  int a[n];
  for (int i = 0; i < n; i++) cin >> a[i];
  for (int i = 0; i < (1 << n); i++) {
    int sum = 0;
    for (int j = 0; j < n; j++) {
      if ((i & (1 << j)))
        sum += a[j];
      else
        sum -= a[j];
    }
    if (abs(sum) % 360 == 0) {
      cout << "YES"
           << "\n";
      return;
    }
  }
  cout << "NO"
       << "\n";
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  pre();
  int t;
  t = 1;
  for (int i = 0; i < t; i++) solve();
  return 0;
}
