#include #include #include using namespace std; int main() { string s; cin >> s; for (int i = 0; i < s.length() - 3; i++) { if (s.substr(i, 3) == "575") { return cout << "YES" << endl, 0; } } cout << "NO" << endl; return 0; }