#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, i, j, sum = 0, ans, k, l;
  cin >> n;
  int a[n];
  for (i = 0; i < n; i++) cin >> a[i], sum += a[i];
  for (i = 0; i < pow(2, n); i++) {
    ans = 0;
    j = 0;
    k = i;
    l = n;
    while (l--) {
      if (k % 2) ans += a[j];
      if (k % 2 == 0) ans -= a[j];
      j++;
      k /= 2;
    }
    if (ans % 360 == 0) return cout << "YES" << endl, 0;
  }
  cout << "NO" << endl;
  return 0;
}
