'''
Python 模拟密码登录 by 郑瑞国
'''
i = 0
while i < 3:
i += 1
username = input("username:")
password = input("password:")
if (username == 'safeness' or username == 'health') and password == '521521':
print('登录成功')
print('程序正常运行')
else:
if i==3:
print('登录失败')
break
else:
print('登录失败,重试,请输入正确的用户名和密码')
print('程序已退出')