#include <bits/stdc++.h>
using namespace std;
int flag = 0;
int check(int degree, int index, int a[], int n) {
  if (flag == 1) return 0;
  if (index == n && degree % 360 == 0) {
    flag = 1;
    return 0;
  } else {
    if (index < n) {
      check(degree + a[index], index + 1, a, n);
      check(degree - a[index], index + 1, a, n);
    }
  }
  return 0;
}
int main() {
  int n;
  cin >> n;
  int a[n];
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  check(0, 0, a, n);
  if (flag == 1)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
