#include #include void solve() { std::string s; std::cin >> s; for (int i = 0; i + 2 < (int)s.length(); ++i) { if (s.substr(i, 3) == "575") { std::cout << "YES" << std::endl; return; } } std::cout << "NO" << std::endl; } int main() { std::cin.tie(nullptr); std::ios::sync_with_stdio(false); solve(); return 0; }