#include <bits/stdc++.h>
using namespace std;
const int N = 20;
int n, a[N];
int main()
{
cin >> n;
for(int i = 0; i < n; i ++) cin >> a[i];
for(int i = 0; i < 1 << n; i ++)
{
bool res = false;
int s = 0;
for(int j = 0; j < n; j ++)
{
if(i >> j & 1) s += a[j];
else s -= a[j];
}
if(s % 360 == 0)
{
puts("YES");
return 0;
}
}
puts("NO");
return 0;
}