/* * 558.cpp * * Created on: 2017/08/25 * Author: pinebooks */ #include #include using namespace std; bool is_contains(string S) { if (S.size() < 3) return false; for (int i = 0; i < S.size() - 2; ++i) { if (S[i] == '5' && S[i + 1] == '7' && S[i + 2] == '5') { return true; break; } } return false; } int main() { string S; cin >> S; if(is_contains(S)) cout << "YES" << endl; else cout << "NO" << endl; return 0; }