class Solution {
public String solution(String rsp) {
String answer = "";
String[] arr = rsp.split("");
for(int i = 0; i < arr.length; i++){
if(arr[i].equals("2")) {
arr[i] = "0";
}else if(arr[i].equals("5")) {
arr[i] = "2";
}else if(arr[i].equals("0")) {
arr[i] = "5";
}
answer += arr[i];
}
return answer;
}
}