#include <bits/stdc++.h>
using namespace std;
const int N = 1e6 + 5;
const int MOD = 1e9 + 7;
long long int n;
long long int a[N];
long long int go(long long int idx, long long int sum) {
  if (idx == n + 1) {
    if (sum % 360 == 0) return 1;
    return 0;
  }
  long long int b = 0;
  b |= go(idx + 1, sum + a[idx]);
  b |= go(idx + 1, sum - a[idx]);
  return b;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  cout.tie(NULL);
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
  }
  if (go(1, 0))
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
