#include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; #define fi first #define se second #define mp make_pair const int inf=1e9+7; const ll mod=1e9+7; int main() { int N; cin>>N; N %= 360; if((N==90) | (N==270)) cout<<"Yes"<