#include <bits/stdc++.h>
int main() {
  char a[1001][6];
  int n, i;
  scanf("%d", &n);
  for (i = 1; i <= n; i++) scanf("%s", a[i]);
  int flag = false;
  int k1 = 0, k2 = 0;
  for (i = 1; i <= n; i++) {
    if (a[i][0] == 'O' && a[i][1] == 'O') {
      a[i][0] = '+', a[i][1] = '+';
      k1 = i;
      break;
    } else if (a[i][3] == 'O' && a[i][4] == 'O') {
      a[i][3] = '+', a[i][4] = '+';
      k2 = i;
      break;
    }
  }
  if (k1 != 0) {
    printf("YES\n");
    for (i = 1; i <= n; i++) {
      printf("%s\n", a[i]);
    }
  } else if (k2 != 0) {
    printf("YES\n");
    for (i = 1; i <= n; i++) {
      printf("%s\n", a[i]);
    }
  } else
    printf("NO\n");
  return 0;
}
