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