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