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

[백준/파이썬] 5358번 Football Team

by 현장 2023. 2. 12.

-Code

change = {"e": "i", "i": "e", "E": "I", "I": "E"}
while 1:
    try:
        s = input()
        result = ""
        for i in s:
            if i in change:
                result += change[i]
                continue
            result += i
        print(result)
    except EOFError:
        break