/* -*- coding: utf-8 -*- * * 3526.cc: No.3526 Anti SKG - yukicoder */ #include #include #include using namespace std; /* constant */ const int MAX_N = 200000; /* typedef */ /* global variables */ char t[MAX_N + 4]; /* subroutines */ /* main */ int main() { scanf("%s", t); int n = strlen(t); for (int i = 0; i + 3 <= n; i++) if (t[i] == 'S' && t[i + 1] == 'K' && t[i + 2] == 'G') { puts("No"); return 0; } for (int i = 0; i < n; i++) { if (t[i] == '.') { if (i < 2 || t[i - 2] != 'S' || t[i - 1] != 'K') t[i] = 'G'; else if (i < 1 || i + 1 >= n || t[i - 1] != 'S' || t[i + 1] != 'G') t[i] = 'K'; else t[i] = 'S'; } } puts("Yes"); puts(t); return 0; }