#include <bits/stdc++.h>
const long long inf = 998244353;
using namespace std;
long long read() {
  long long x = 0, f = 1;
  char ch = getchar();
  while (!isdigit(ch)) {
    if (ch == '-') f = -1;
    ch = getchar();
  }
  while (isdigit(ch)) x = x * 10 + ch - '0', ch = getchar();
  return f * x;
}
int n, a[1005], tot;
int main() {
  n = read();
  for (int i = 1; i <= n; i++) a[i] = read();
  tot = (1 << n) - 1;
  for (int k = 0; k <= tot; k++) {
    int s = 0;
    for (int i = 1; i <= n; i++)
      if ((1 << i - 1) & k)
        s += a[i];
      else
        s -= a[i];
    s %= 360;
    if (s == 0) return 0 * printf("YES\n");
  }
  return 0 * printf("NO\n");
}
