#include <bits/stdc++.h>
using namespace std;
int arr[15];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  int n;
  cin >> n;
  for (int i = 0; i < n; ++i) cin >> arr[i];
  for (int bit = 0; bit < (1 << n); ++bit) {
    int deg = 0;
    for (int i = 0; i < n; ++i)
      if (bit & (1 << i))
        deg += arr[i];
      else
        deg -= arr[i];
    if (deg % 360 == 0) {
      cout << "YES\n";
      return 0;
    }
  }
  cout << "NO\n";
}
