#include <bits/stdc++.h>
using namespace std;
bool calc(int a[], int n, int sum) {
  if (n == 0) {
    if (sum % 360 == 0) return true;
    return false;
  }
  bool x = calc(a + 1, n - 1, sum + a[0]);
  bool y = calc(a + 1, n - 1, sum - a[0]);
  if (x || y) return true;
  return false;
}
void solve() {
  int n;
  cin >> n;
  int a[n];
  for (int i = 0; i < n; i++) cin >> a[i];
  if (calc(a, n, 0))
    cout << "YES";
  else
    cout << "NO";
}
int main() {
  int t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
