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