#include using namespace std; char c[1000]; int main(void) { while(cin>>c) { int l=strlen(c); if(c[l-1]=='0'||c[l-1]=='5') { cout<<"YES"<