#include <bits/stdc++.h>
using namespace std;
const long long N = 1e6 + 10;
const long long inf = 1e18;
long long n;
long long arr[20];
bool flag = false;
void rec(long long i, long long s) {
  if (i == n + 1 && s % 360 == 0) flag = true;
  if (i > n) return;
  rec(i + 1, s + arr[i]);
  rec(i + 1, s - arr[i]);
}
int32_t main() {
  cin >> n;
  for (long long i = 1; i <= n; i++) cin >> arr[i];
  rec(1, 0);
  if (flag)
    cout << "YES";
  else
    cout << "NO";
}
