#include using namespace std; int main() { string s; cin >> s; for (int i = 0; i < s.size() - 3; i++) { if (s[i] == '5' && s[i+1] == '7' && s[i+2] == '5') { cout << "YES" << endl; return 0; } } cout << "NO" << endl; return 0; }