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