def isValid(a):
    for i in a:
        if a.isdigit() and len(a) <= 5:
            return True
        else:
            return False


a = input()
print(isValid(a))

f8f71c01e8cad9649a4a06ecbdae474c80ba97b6
<mask token>

def isValid(a):
    for i in a:
        if a.isdigit() and len(a) <= 5:
            return True
        else:
            return False


<mask token>

def isValid(a):
    for i in a:
        if a.isdigit() and len(a) <= 5:
            return True
        else:
            return False


<mask token>
print(isValid(a))

def isValid(a):
    for i in a:
        if a.isdigit() and len(a) <= 5:
            return True
        else:
            return False


a = input()
print(isValid(a))
