S = str(input()) if len(S) == 2: print('Yes') else: print('No')