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