#define _USE_MATH_DEFINES #include //cin, cout #include //vector #include //sort,min,max,count #include //string,getline #include //fixed #include //setprecision #include //swap #include //abs(int) #include //sqrt,ceil,M_PI, pow, sin #include //stringstream,getline #include //gcd #include //deque using namespace std; int main() { string S; cin >> S; if (S.find("575") != string::npos) { cout << "YES" << endl; } else { cout << "NO" << endl; } return 0; }