horario = input("Digite o horário atual no formato de 24h: ")
while len(horario) != 5 or horario[2] != ':' or not horario[:2].isdigit() or not horario[3:].isdigit():
print("Digite um horário válido (Ex.: 08:00)")
horario = input("Digite o horário atual no formato de 24h: ")
if "08:00" < horario < "18:00":
print("Acesso concedido!")
else:
print("Acesso negado!")