#include <bits/stdc++.h>
using namespace std;
const int inf = (long long)1e9;
const long long mod = 998244353;
int n;
int a[22];
int main() {
  ios_base ::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> n;
  for (int i = 0; i < n; ++i) cin >> a[i];
  for (int mask = 0; mask < (1 << n); ++mask) {
    int sum = 0;
    for (int i = 0; i < n; ++i) {
      if ((mask & (1 << i)))
        sum += a[i];
      else
        sum -= a[i];
    }
    if (sum % 360 == 0) {
      cout << "YES\n";
      return 0;
    }
  }
  cout << "NO\n";
  return 0;
}
