x,y,*s=gets(p).split.map &:to_i; puts s.size>2&&(y-x)*s[-1]>(s[-1]-s[-2])*y ? :NO: :YES