#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.substr(j, 6) == "yiwiy9") { S[j+4] = 'Y'; j += 6; } if(S.substr(j, 6) == "9yiwiy") { S[j+1] = 'Y'; j += 6; } } cout << S << endl; } }