#include <bits/stdc++.h>
using namespace std;
int n, ro[16];
bool can(int cur, int sum, bool f) {
  sum += 360;
  sum %= 360;
  if (cur == n) {
    if (sum == 0) f = 1;
    return f;
  }
  if (can(cur + 1, sum + ro[cur], f))
    return 1;
  else
    return can(cur + 1, sum - ro[cur], f);
}
int main() {
  scanf("%d", &n);
  getchar();
  for (int i = 0; i < n; i++) {
    scanf("%d", &ro[i]);
    getchar();
  }
  if (can(0, 0, 0))
    printf("YES\n");
  else
    printf("NO\n");
}
