import java.util.*; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int h = scan.nextInt(); int w = scan.nextInt(); for(int i = 0 ; i < h ; i++){ String iwi = scan.next(); for(int j = 0 ; j < w ; j++){ if(iwi.charAt(j) == 'y' ){ System.out.print("yiwiY9"); j+=5; }else if(iwi.charAt(j) == '9' ){ System.out.print("9Yiwiy"); j += 5; }else{ System.out.print("."); } } System.out.println(""); } } }