def main(): n = int(input()) h, w = list(map(lambda x: int(x)-1, input().split())) if h == 0 or w == 0: return "Yes" elif h == w: return "Yes" else: return "No" print(main())