def check(number):
    """check that the number of robots is between 1 and 100."""
    number = int(number)
    if number < 1:
        number = 1
    if number > 100:
        number = 100
    return number