a,b,c=STDIN.read.split.map(&:to_i) puts ((a/b)*2==(a/c)*3)?"YES":"NO"