if (input() == 'admin' or 'administrator') and input() == '123456':
print('登录成功')
else:
for i in range(2):
if (input() == 'admin' or 'administrator') and input() == '123456':
print('登录成功')
break
else:
print('登录失败')