#include <bits/stdc++.h>
using namespace std;
inline void getInt(int* p);
const int maxn = 1000010;
int a[500];
int main() {
  int n;
  getInt(&n);
  for (int i = 0; i <= n - 1; i++) {
    getInt(&a[i]);
  }
  int tot = 1 << n;
  for (int i = 0; i <= tot; i++) {
    int sum = 0;
    for (int j = 0; j < n; j++) {
      if ((1 << j) & i)
        sum += a[j];
      else
        sum -= a[j];
    }
    if (sum == 0 || sum % 360 == 0) {
      printf("YES\n");
      return 0;
    }
  }
  printf("NO\n");
  return 0;
}
inline void getInt(int* p) {
  char ch;
  do {
    ch = getchar();
  } while (ch == ' ' || ch == '\n');
  if (ch == '-') {
    *p = -(getchar() - '0');
    while ((ch = getchar()) >= '0' && ch <= '9') {
      *p = *p * 10 - ch + '0';
    }
  } else {
    *p = ch - '0';
    while ((ch = getchar()) >= '0' && ch <= '9') {
      *p = *p * 10 + ch - '0';
    }
  }
}
