Enter the secret number when prompted.
The script had 2 identical operators "<". I replaced one of these with a ">" operator to make the script work.