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