#include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int H, W; cin >> H >> W; for(int i=0; i> S; for(int j=0; j<=W-6; j++) { if(S[j] == '.') continue; if(S[j] == '9') S[j+1] = 'Y'; if(S[j] == 'y') S[j+4] = 'Y'; j += 5; } cout << S << endl; } }