#include using namespace std; typedef long long ll; #define REP(i,n) for(int i=0;i> S; REP(i, S.length() - 2) { if(S[i] == '5' && S[i+1] == '7' && S[i+2] == '5') { printf("YES\n"); return 0; } } printf("NO\n"); return 0; }