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