#include <stdio.h> int main() { int i=0; while (scanf("%d", &i) != EOF) { if(i%5==0) printf("YES"); else printf("NO"); } return 0; }