#include <iostream>
#include <string>
int main()
{
std::string field = "264754";
std::size_t index = field.find('4');
if (index != std::string::npos)
std::cout << field.substr(index);
else
std::cout << "'4' was not found in \"" << field << '"';
std::cout << '\n';
}