def main(): N = str(input()) if len(N) == 2: print('Yes') else: print('No') if __name__ == '__main__': main()