#K76297. Flag Long Message

    ID: 34611 Type: Default 1000ms 256MiB

Flag Long Message

Flag Long Message

You are given a message as a string and an integer limit. Your task is to check whether the number of words in the message exceeds the given limit. In mathematical terms, let \( n \) be the number of words in the message and \( L \) be the limit. Return True if \( n > L \), otherwise False.

Be careful to correctly count words even if there are multiple spaces between them.

inputFormat

The input is given via standard input (stdin) and consists of two lines:

  • The first line contains the message (a string which may include spaces).
  • The second line contains an integer limit, which is the maximum allowable word count.

outputFormat

Output to standard output (stdout) a single line: True if the number of words in the message is greater than the limit, and False otherwise.

## sample
Hello there!\n5
False