CF697A Pineapple Incident

题目描述

Ted有一个菠萝。这个菠萝可以像狗一样叫!在第 $t$ 秒它第一次叫。然后每隔 $s$ 秒之后它会叫一次,在叫这一次之后还会在后一秒再叫一次。意思就是说它会在 $t$ 秒,$t+s$ 秒,$t+s+1$ 秒,$t+2s$ 秒,$t+2s+1$ 秒分别叫一次,以此类推。 Barney在早上醒来,他想吃个菠萝,但这只菠萝叫的时候Barney不能吃它。Barney打算在 $x$ 秒吃它,所以请你告诉Barney在x秒的时候,这个菠萝会不会叫。

输入格式

仅输入一行,输入 $t,s,x$($0\le t,x\le 10^9$,$2\leq s\leq 10^9$)分别为菠萝第一次叫的时间,叫的间隔以及Barney想吃的时间。

输出格式

如果菠萝要叫的话,输出YES,否则输出NO。

说明/提示

In the first and the second sample cases pineapple will bark at moments $ 3 $ , $ 13 $ , $ 14 $ , ..., so it won't bark at the moment $ 4 $ and will bark at the moment $ 3 $ . In the third and fourth sample cases pineapple will bark at moments $ 3 $ , $ 11 $ , $ 12 $ , $ 19 $ , $ 20 $ , $ 27 $ , $ 28 $ , $ 35 $ , $ 36 $ , $ 43 $ , $ 44 $ , $ 51 $ , $ 52 $ , $ 59 $ , ..., so it will bark at both moments $ 51 $ and $ 52 $ .