#include <bits/stdc++.h>
using namespace std;
int n;
int arr[20];
bool is = false;
void solve(int ind, int sum) {
  if (ind == n) {
    if (sum % 360 == 0 && !is) {
      cout << "YES";
      is = true;
    }
    return;
  }
  if (!is) {
    solve(ind + 1, sum + arr[ind]);
    solve(ind + 1, sum - arr[ind]);
  }
}
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
  }
  solve(0, 0);
  if (!is) {
    cout << "NO";
  }
  return 0;
}
