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