print("Please insert your username")
username = input()
print("Please insert your password")
password = input()
attempts = 0
while username != "Hamish" and password != "pass":
print("Login incorrect")
print("Please insert your username")
username = input()
print("Please insert your password")
password = input()
attempts = attempts + 1
print("Welcome", "It took you", attempts, "to login")