#include <bits/stdc++.h>
using namespace std;
int n, res, a[16];
int mask;
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  for (int mask = 0; mask < (1 << n); mask++) {
    res = 0;
    for (int i = 0; i < n; i++) {
      int bit = (mask >> i) & 1;
      if (bit) {
        res += a[i];
      } else {
        res -= a[i];
      }
    }
    if (res % 360 == 0) {
      cout << "YES";
      return 0;
    }
  }
  cout << "NO";
  return 0;
}
