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