#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int arr[n];
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
  }
  for (int x = 0; x < (1 << n); x++) {
    int sum = 0;
    for (int i = 0; i < n; i++) {
      if (x & (1 << i)) {
        sum += arr[i];
      } else {
        sum -= arr[i];
      }
    }
    if (sum % 360 == 0) {
      cout << "YES";
      return 0;
    }
  }
  cout << "NO";
  return 0;
}
