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