"""
출처: 프로그래머스 코딩 테스트 연습,
https://school.programmers.co.kr/learn/courses/30/lessons/120839
"""
# 풀이 과정
def solution(rsp):
a = list(rsp)
result = []
for x in a:
if x == "2":
result.append("0")
elif x == "0":
result.append("5")
elif x == "5":
result.append("2")
answer = "".join(result)
return answer