# include # include # include # include # include # include # include # include # include # include # include # include # include using namespace std; using LL = long long; constexpr int MOD = 1000000000 + 7; //足し算してオーバーフローで死なないように確認しようね constexpr int INF = 1000000000; const double PI = acos(-1); int main() { string s; cin >> s; for (int i = 0; i < s.size(); i++) { if (s.substr(i, 3) == "575") { cout << "YES" << endl; return 0; } } cout << "NO" << endl; return 0; }