#include <bits/stdc++.h>
using namespace std;
const int MAX = 20;
int a[MAX];
int n;
bool go(int i, int ang) {
  if (i == n) {
    if (ang % 360 == 0)
      return true;
    else
      return false;
  }
  bool ret = go(i + 1, (ang + a[i]) % 360);
  ret = max(ret, go(i + 1, (ang - a[i] + 360) % 360));
  return ret;
}
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) cin >> a[i];
  if (go(0, 0))
    cout << "YES\n";
  else
    cout << "NO\n";
}
