#define _USE_MATH_DEFINES #define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<string> #include<iostream> #include<iostream> #include<cctype> #include<cstdio> #include<vector> #include<stack> #include<queue> #include <algorithm> #include<math.h> #include<set> #include<map> #include <sstream> #include<iomanip> #include <ctype.h> using namespace std; //#include<bits/stdc++.h> int f[2000005]; int main() { string s; cin >> s; for (int i = 0; i < s.size()-2; i++) { if (s[i] == '5'&&s[i + 1] == '7'&&s[i + 2] == '5') { cout << "YES" << endl; return 0; } } cout << "NO" << endl; return 0; }