S = input() if 'SKG' in S: print('No') else: print('Yes')