#include #include #include #include #include #include #include #include typedef long long ll; using namespace std; int main(void) { int a; bool flg = false; cin >> a; if (a == 180 || a == 360 || a == 540 || a == 720 || a == 900) { flg = true; } if (flg) { cout << "No" << endl; } else { cout << "Yes" << endl; } return 0; }