#include <bits/stdc++.h>
using namespace std;
int a[15];
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  for (int b = 0; b < (1 << n); b++) {
    int sm = 0;
    for (int j = 0; j < n; j++) {
      sm += a[j] * (((b >> j) & 1) ? -1 : 1) + 360;
    }
    if (sm % 360 == 0) {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
  return 0;
}
