#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:10000000000")
using namespace std;
int inf = 1000000007;
int n, m, k, a, b, v;
vector<int> vec;
vector<int> mas;
void bin(int a) {
  int i = 0;
  while (a > 0) {
    vec[i] = a % 2;
    a /= 2;
    ++i;
  }
}
bool check() {
  int s = 0;
  for (int i = 0; i < n; ++i) {
    vec[i] ? s += mas[i] : s -= mas[i];
    s %= 360;
  }
  return s == 0;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  scanf("%d", &n);
  vec = vector<int>(n, 0);
  for (int i = 0; i < n; ++i) {
    scanf("%d", &v);
    mas.push_back(v);
  }
  for (int i = 0; i < pow(2, n); ++i) {
    bin(i);
    if (check()) {
      printf("YES");
      return 0;
    }
  }
  printf("NO");
  return 0;
}
