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