database = {'hu':'3610','quan':'8783'}


count = 0
while count < 3:
    username = input('Please enter your username\n')
    password = input('Please enter your password\n')
    if username in database:
        if database.get(username) == password:
            print('Welcome to the user')
            break
        else:
            print('The user name or password error')
            count +=1
    else:
        print('The user name or password error')
        count +=1


while count == 3:       
    input()
    print('You have been locked')
    continue