#include <bits/stdc++.h>
using namespace std;
int n;
vector<int> v;
void go(int sum, int i) {
  if (sum == 0 && i == n) {
    cout << "YES";
    exit(0);
  } else if (i >= n)
    return;
  go((sum + v[i]) % 360, i + 1);
  int temp = sum - v[i];
  if (temp < 0) temp += 360;
  go(temp, i + 1);
}
int main() {
  cin >> n;
  for (int i = 0, t; i < n; i++) cin >> t, v.push_back(t);
  go(0, 0);
  cout << "NO";
  return 0;
}
