#include <iostream>
#include<cstring>
using namespace std;
const int size = 100;
void replace( char *p );
int main()
{
char bereplace[size];
cout << "please input the strings you want to edit!" << endl;
cin.getline( bereplace, size );
for ( int i = 0; i < strlen(bereplace); i ++ )
replace( &bereplace[i] );
cout << bereplace << endl;
return 0;
}
void replace ( char *p )
{
if ( *p == 'h' && *(p+1) == 'i' &&*(p+2) == 'm' )
{
*(p+1) = 'e';
*(p+2) = 'r';
}
}