#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a[n];
  int sum = 0;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    sum += a[i];
  }
  for (int k = 0; k < pow(2, n); k++) {
    int ans1 = 0;
    int j = 0, i = k;
    while (i > 0) {
      if (i & 1) {
        ans1 += a[j];
      }
      i >>= 1;
      j++;
    }
    int ans2 = sum - ans1;
    if ((ans1 - ans2) % 360 == 0) {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
  return 0;
}
