func_code_string: #include <bits/stdc++.h>   using namespace std;   char seat[10][1005];   int main() {     ios::sync_with_stdio(false);     cin.tie(0);     int n;     cin >> n;     int mark = 2000;     int flag;     for (int i = 0; i < n; i++) {       cin >> seat[0][i] >> seat[1][i] >> seat[2][i] >> seat[3][i] >> seat[4][i];       if (seat[0][i] ==  O  && seat[1][i] ==  O ) {         mark = i;         flag = 0;       }       if (seat[3][i] ==  O  && seat[4][i] ==  O ) {         mark = i;         flag = 3;       }     }     if (mark == 2000)       cout <<  NO  << endl;     else {       seat[flag][mark] =  + ;       seat[flag + 1][mark] =  + ;       cout <<  YES  << endl;       for (int i = 0; i < n; i++) {         cout << seat[0][i] << seat[1][i] << seat[2][i] << seat[3][i] << seat[4][i]              << endl;       }     }     return 0;   }   