import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String t = br.readLine(); br.close(); if (t.indexOf("SKG") != -1) { System.out.println("No"); return; } char[] s = t.toCharArray(); for (int i = 0; i < s.length; i++) { if (s[i] == '.') { s[i] = 'G'; boolean ok = true; for (int j = Math.max(i - 2, 0); j <= Math.min(i, s.length - 3); j++) { if (s[j] == 'S' && s[j + 1] == 'K' && s[j + 2] == 'G') { ok = false; break; } } if (ok) { continue; } s[i] = 'K'; ok = true; for (int j = Math.max(i - 2, 0); j <= Math.min(i, s.length - 3); j++) { if (s[j] == 'S' && s[j + 1] == 'K' && s[j + 2] == 'G') { ok = false; break; } } if (ok) { continue; } s[i] = 'S'; ok = true; for (int j = Math.max(i - 2, 0); j <= Math.min(i, s.length - 3); j++) { if (s[j] == 'S' && s[j + 1] == 'K' && s[j + 2] == 'G') { ok = false; break; } } if (ok) { continue; } System.out.println("No"); return; } } System.out.println("Yes"); System.out.println(s); } }