#include <bits/stdc++.h>
using namespace std;
int const N = 1e6 + 2;
int a[N];
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int n;
  cin >> n;
  for (int i = 0; i < (int)(n); ++i) cin >> a[i];
  for (int i = 0; i < (int)((1 << n)); ++i) {
    long long sum = 0;
    for (int j = 0; j < (int)(n); ++j)
      if (i & (1 << j))
        sum += a[j];
      else
        sum -= a[j];
    sum %= 360;
    if (!sum) return cout << "YES", 0;
  }
  cout << "NO" << endl;
}
