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