CF716A Crazy Computer
Description
ZS the Coder is coding on a crazy computer. If you don't type in a word for a $ c $ consecutive seconds, everything you typed disappear!
More formally, if you typed a word at second $ a $ and then the next word at second $ b $ , then if $ b-a
Input Format
The first line contains two integers $ n $ and $ c $ ( $ 1
Output Format
Print a single positive integer, the number of words that remain on the screen after all $ n $ words was typed, in other words, at the second $ t_{n} $ .
Explanation/Hint
The first sample is already explained in the problem statement.
For the second sample, after typing the first word at the second $ 1 $ , it disappears because the next word is typed at the second $ 3 $ and $ 3-1>1 $ . Similarly, only $ 1 $ word will remain at the second $ 9 $ . Then, a word is typed at the second $ 10 $ , so there will be two words on the screen, as the old word won't disappear because $ 10-9