a = int(input()) b = int(input()) c = int(input()) if ((a/b)*2) == ((a/c)*3) : print("YES") else : print("NO")