#include <bits/stdc++.h>
using namespace std;
template <class T>
inline void read(T &x) {
  x = 0;
  char c = getchar();
  int f = 1;
  while (!isdigit(c)) {
    if (c == '-') f = -1;
    c = getchar();
  }
  while (isdigit(c)) x = x * 10 - '0' + c, c = getchar();
  x *= f;
}
const int N = 20;
int a[N], n, flg;
void dfs(int cur, int sum) {
  if (cur == n + 1) {
    if (sum == 0) flg = 1;
    return;
  }
  dfs(cur + 1, (sum + a[cur]) % 360);
  if (flg) return;
  dfs(cur + 1, (sum - a[cur] + 360) % 360);
}
int main() {
  read(n);
  for (int i = 1; i <= n; ++i) read(a[i]);
  dfs(1, 0);
  if (flg)
    printf("YES");
  else
    printf("NO");
  return 0;
}
