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