#include using namespace std; int main(){ int n; cin >> n; n %= 360; puts(n == 90 or n == 270 ? "Yes" : "No"); }