#include int main() { int n; scanf("%d", &n); if (n % 360 == 90 || n % 360 == 270) printf("Yes\n"); else printf("No\n"); return 0; }