num=int(input("Ingrese un número entero: "))
if num % 3 == 0 and num % 5 == 0:
print("¡Número mágico!")
elif num % 3 == 0:
print("Divisible por 3")
elif num % 5 == 0:
print("Divisible por 5")
else:
print("No es un número mágico")
num=int(input("Ingrese un número entero: "))
if num % 3 == 0 and num % 5 == 0:
print("¡Número mágico!")
elif num % 3 == 0:
print("Divisible por 3")
elif num % 5 == 0:
print("Divisible por 5")
else:
print("No es un número mágico")