#include using namespace std; #define rep(i,n) for(long long i = 0; i < (long long)(n); i++) using ll = long long; template ostream &operator<<(ostream &o, const pair &v) { o << "(" << v.first << ", " << v.second << ")"; return o; } template struct seq{}; template struct gen_seq : gen_seq{}; template struct gen_seq<0, Is...> : seq{}; template void print_tuple(basic_ostream& os, Tuple const& t, seq){ using s = int[]; (void)s{0, (void(os << (Is == 0? "" : ", ") << get(t)), 0)...}; } template auto operator<<(basic_ostream& os, tuple const& t) -> basic_ostream& { os << "("; print_tuple(os, t, gen_seq()); return os << ")"; } int main(void) { ll h, w; cin >> h >> w; vector b(h); rep(i, h) cin >> b[i]; ll ah, aw; while (1) { ah = rand() % h; aw = rand() % w; if (b[ah][aw] == '-') break; } b[ah][aw] = '*'; rep(i, h) cout << b[i] << endl; return 0; }