import math n = int(input()) a, b = map(int, input().split()) if(math.gcd(a, b) == 1 and a + b <= n + 1): print("YES") else: print("NO")