string word = "home";
string result = "";
for (int i = 0; i<19i++)
{
result += word[i];
}
for( int i = 0; i < rep; i++ )
result += word[ i % word.length() ];
for( uint i = 0; i < rep; i += word.length() )
result += rep - i > word.length() ? word : word.substr( 0, rep - i );
for( uint i = 0; i < rep / word.length(); i++ )
result += word;
result += word.substr( 0, rep % word.length() );