#include <bits/stdc++.h>
using namespace std;
int a[20];
int main() {
  int n, b[20];
  cin >> n;
  for (int i = 0; i < n; i++) cin >> b[i];
  int kol = 1;
  for (int i = 0; i < n; i++) kol *= 2;
  for (int i = 0; i < kol; i++) {
    int sum = 0;
    a[n - 1]++;
    for (int j = n - 1; j > 0; j--) {
      a[j - 1] = a[j] / 2 + a[j - 1];
      a[j] %= 2;
    }
    for (int j = 0; j < n; j++) {
      if (a[j] == 1)
        sum += b[j];
      else
        sum -= b[j];
    }
    sum = abs(sum);
    sum %= 360;
    if (sum == 0) {
      cout << "yes";
      return 0;
    }
  }
  cout << "no";
  return 0;
}
