#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a[n];
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  int diff = 10000;
  for (int m = 0; m < (1 << n); m++) {
    int suma = 0;
    for (int i = 0; i < n; i++) {
      if (m & (1 << i)) {
        suma += a[i];
      } else {
        suma -= a[i];
      }
    }
    diff = min(diff, abs(suma) % 360);
  }
  if ((diff == 0))
    cout << "YES";
  else
    cout << "NO";
}
