#include <bits/stdc++.h>
using namespace std;
int n;
int a[20];
bool res = false;
void rec(int num, int s) {
  if (num == n) {
    if ((s % 360 + 2 * 360) % 360 == 0) {
      res = true;
    }
    return;
  }
  rec(num + 1, s + a[num]);
  rec(num + 1, s - a[num]);
}
signed main() {
  ios_base::sync_with_stdio(0);
  cin >> n;
  for (int i = 0; i < n; i++) cin >> a[i];
  rec(0, 0);
  cout << (res ? "YES" : "NO");
  return 0;
}
