For those who are socially awkward, talking to others is a harrowing task. Did you say too much? Too little?
It is this last one that you have become increasingly worried about. Going through your conversations, you record each message as either sent by you (
S), or received by you (
You believe that you are spamming if you have sent at least ~K~ consecutive messages without receiving any replies in between. Can you write a program to see if you have been bothering your fellow netizens?
~1 \leq K \leq 2\,000~
Additionally, the total number of messages sent will not exceed ~2\,000~.
The first line of input will contain a single string, composed of either
The second and final line of input will contain a single integer, ~K~.
Spamming if you have sent at least ~K~ consecutive messages without receiving any replies in between, and
All good otherwise.
Sample Input 1
Sample Output 1
Sample Input 2
Sample Output 2