/** * author: TakeruOkuyama * created: 2020-04-09 14:53:46 **/ #include #define rep(i, n) for(int i = 0; i < (n); i++) using namespace std; using ll = long long; using P = pair; const int MOD = 1000000007; int main(){ string S; cin >> S; if(S.size() < 3){ cout << "NO" << endl; return 0; } rep(i, S.size()-2){ if(S[i]=='5'){ if(S[i+1]=='7'){ if(S[i+2]=='5'){ cout << "YES" << endl; return 0; } } } } cout << "NO" << endl; return 0;} /** * g++ code.cpp * ./a.out * shift + ctrl + i **/