본문 바로가기
Beakjoon&프로그래머스/파이썬

[백준/파이썬] 17548번 Greetings!

by 현장 2022. 10. 31.

-Code

s = input()
cnt = s.count('e')
print('h' + 'e' * cnt * 2 + 'y')