#include <bits/stdc++.h>
using namespace std;
int arr[20], m1 = 0, m2 = 0, n, flag = 1;
int main() {
  ios_base::sync_with_stdio(false);
  int cumsum = 0, x, s = 0, flag = 0;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
    cumsum += arr[i];
  }
  vector<int> v[20];
  v[0].push_back(arr[0]);
  v[0].push_back(-arr[0]);
  for (int i = 1; i < n; i++) {
    for (int j = 0; j < v[i - 1].size(); j++) {
      v[i].push_back(v[i - 1][j] + arr[i]);
      v[i].push_back(v[i - 1][j] - arr[i]);
    }
  }
  for (int i = 0; i < v[n - 1].size(); i++) {
    if (v[n - 1][i] == 0 || v[n - 1][i] % 360 == 0) {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
  return 0;
}
