S.K.GS = input() if 'SKG' in S: print('No') else: print('Yes') print(SKKSG)