#include // #include using namespace std; // using namespace atcoder; #define rep(i, a, n) for(int i = a; i < n; i++) #define rrep(i, a, n) for(int i = a; i >= n; i--) #define inr(l, x, r) (l <= x && x < r) #define ll long long #define ld long double // using mint = modint1000000007; // using mint = modint998244353; constexpr int IINF = 1001001001; constexpr ll INF = 1e18; template void chmax(t&a,u b){if(a void chmin(t&a,u b){if(b> h >> w; vector s(h); rep(j, 0, h){ cin >> s[j]; rep(i, 0, w-5){ if(s[j].substr(i, 6) == "yiwiy9"){ s[j][i+4] = 'Y'; } if(s[j].substr(i, 6) == "9yiwiy"){ s[j][i+1] = 'Y'; } } cout << s[j] << endl; } return 0; }