#include <bits/stdc++.h>
using namespace std;
vector<int> binary(int num, int n) {
  vector<int> bit;
  for (int i = 0; i < n; i++) {
    bit.push_back(num % 2);
    num = num / 2;
  }
  reverse(bit.begin(), bit.end());
  return bit;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  int n, a, sum = 0, notpossible = 0;
  cin >> n;
  vector<int> angles;
  for (int i = 0; i < n; i++) {
    cin >> a;
    angles.push_back(a);
  }
  for (int i = 0; i < pow(2, n); i++) {
    vector<int> direction = binary(i, n);
    for (int j = 0; j < n; j++) {
      if (direction[j] == 1) {
        sum = sum - 2 * angles[j];
      }
      sum += angles[j];
    }
    notpossible = sum;
    if (sum % 360 == 0) {
      cout << "YES";
      break;
    }
    sum = 0;
  }
  if (notpossible % 360 != 0) {
    cout << "NO";
  }
  return 0;
}
