pin=1313
attempts=0
max_attempts=5
while True:
A=int(input("enter your code:"))
if pin==A:
print("welcome to your program")
break
elif attempts==max_attempts:
print("you have reached the maximum number of attempts, try after some time")
break
else:
attempts+=1
print("wrong pin! try again")