#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int n;
  cin >> n;
  int a[n];
  for (int i = 0; i < n; i++) cin >> a[i];
  for (int i = 0; i <= pow(2, n - 1); i++) {
    int cur = i, sum = 0, cnt = 0;
    while (cur > 0) {
      if (cur % 2 == 1) {
        sum += a[cnt];
        sum %= 360;
      } else {
        sum -= a[cnt];
        sum %= 360;
      }
      cur /= 2;
      cnt++;
    }
    for (int i = cnt; i < n; i++) {
      sum -= a[i];
      sum %= 360;
    }
    if (sum == 0) {
      cout << "YES";
      return 0;
    }
  }
  cout << "NO";
  return 0;
}
