# Write a program that takes a positive 
# int in input and tells whether it is a leap year
# Check Exercises on decisions
# Now the program must accept positive integers only, 
# otherwise it asks the user to re-enter input

def leapYear(n):
    if n%400== 0 or (n%4 == 0 and n%100!=0):
        return True
    else:
        return False




Nn=0

while Exception:
    try:
        Nn = int(input("inserire un numero: "))
        if Nn<0:
            raise Exception
        else: 
            break
    except Exception:
        print("non si accettano numeri minori di 0!!")
        tuttook = True
        
    
if leapYear(Nn):
    print(Nn," è bisestile!")
else:
    print(Nn," non è bisestile!")

# Write a program that takes a positive 
# int in input and tells whether it is a leap year
# Check Exercises on decisions
# Now the program must accept positive integers only, 
# otherwise it asks the user to re-enter input

def leapYear(n):
    if n%400== 0 or (n%4 == 0 and n%100!=0):
        return True
    else:
        return False




Nn=0

while Exception:
    try:
        Nn = int(input("inserire un numero: "))
        if Nn<0:
            raise Exception
        else: 
            break
    except Exception:
        print("non si accettano numeri minori di 0!!")
        tuttook = True
        
    
if leapYear(Nn):
    print(Nn," è bisestile!")
else:
    print(Nn," non è bisestile!")

# Write a program that takes a positive # int in input and tells whether it is a leap year # Check Exercises on decisions # Now the program must accept positive integers only, # otherwise it asks the user to re-enter input