Ответ: #include<iostream>#include<string>using namespace std;int main(){    string S;    cin >> S;    int L = S.length();    for(int i = 0; i < L/2; i++)        if (S[i] == ‘:’) S[i] = ‘.’;    for(int i = L/2; i < L; i++)        if (S[i] == ‘!’) S[i] = ‘.’;        cout << S;    return 0;}