#include <bits/stdc++.h>

using namespace std;

void solve(int n) {
	int x = 90;
	while(x < n) {
		x += 180;
	}
	if (x == n) {
		puts("Yes");
		return;
	}

	puts("NO");
}

int main() {
	int n;
	cin >> n;

	solve(n);

	return 0;
}