S = input() if len(S) == 1:print('No') elif len(S) == 2: if S[0] == S[1]:print('Yes') else:print('No') else:print('Yes')