#include using namespace std; typedef long long ll; typedef pair P; int cross(P p1, P p2) { return p1.first * p2.second - p1.second * p2.first; } string b[100]; int main() { cin.tie(0); ios::sync_with_stdio(false); int H, W; cin >> H >> W; vector

p; for(int y = 0; y < H; y++) { cin >> b[y]; for(int x = 0; x < W; x++) { if(b[y][x] == '*') p.push_back(P(x, y)); } } bool ok = false; for(int y = 0; y < H; y++) { for(int x = 0; x < W; x++) { if(!ok && b[y][x] == '-') { P p1(p[0].first - x, p[0].second - y); P p2(p[1].first - x, p[1].second - y); if(cross(p1, p2) != 0) { b[y][x] = '*'; ok = true; } } } } for(int y = 0; y < H; y++) { cout << b[y] << endl; } }