def main(): print('Yes' if all(len(x) == 1 for x in input().split(' ')) else 'No') if __name__ == '__main__': main()