string = input()
start = string.find('h')
end = string.rfind('h')
fragment = string[start + 1:end]
print(string[:start + 1] + fragment.replace('h', 'H') + string[end:])

78447cb40c37ab90f550f18ef97c77c4ad325921
<mask token>

<mask token>
print(string[:start + 1] + fragment.replace('h', 'H') + string[end:])

string = input()
start = string.find('h')
end = string.rfind('h')
fragment = string[start + 1:end]
print(string[:start + 1] + fragment.replace('h', 'H') + string[end:])
