#include <bits/stdc++.h>
using namespace std;
int a[15], n;
string st = "NO";
void solve(int i, int s) {
  if (s % 360 == 0) s = 0;
  if (i == n) {
    if (s == 0) st = "YES";
    return;
  }
  solve(i + 1, s - a[i]);
  solve(i + 1, s + a[i]);
}
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  solve(0, 0);
  cout << st;
  return 0;
}
